/[soft]/identity/CatDap/trunk/lib/CatDap/Controller/admin.pm
ViewVC logotype

Diff of /identity/CatDap/trunk/lib/CatDap/Controller/admin.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1792 by misc, Thu Jul 21 16:50:34 2011 UTC revision 1793 by misc, Thu Jul 21 17:10:36 2011 UTC
# Line 632  sub group_modify : Local { Line 632  sub group_modify : Local {
632          $c->detach('/admin/group');          $c->detach('/admin/group');
633      }      }
634    
635      if ( ! $c->check_user_roles('Account Admins') and ! $c->check_user_roles('Group Admins')) {      #FIXME I am sure that the code can be smaller and leaner
636        @entries = $mesg_group->entries;
637        @entries = $entries[0]->get_value('owner');
638        my $is_owner = grep { $_ eq $c->user->ldap_entry->dn } @entries;
639    
640        if ( ! $is_owner and ! $c->check_user_roles('Account Admins') and ! $c->check_user_roles('Group Admins')) {
641          $c->forward('/user');          $c->forward('/user');
642      }      }
643    

Legend:
Removed from v.1792  
changed lines
  Added in v.1793

  ViewVC Help
Powered by ViewVC 1.1.30