[vhffs-dev] [1909] only administrators should be allowed to removed someone from a group, in order to switch all files owned by this user to another one and to change the owner on some VHFFS object the user might have created into the group |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
- To: vhffs-dev@xxxxxxxxx
- Subject: [vhffs-dev] [1909] only administrators should be allowed to removed someone from a group, in order to switch all files owned by this user to another one and to change the owner on some VHFFS object the user might have created into the group
- From: subversion@xxxxxxxxxxxxx
- Date: Fri, 04 Nov 2011 22:43:46 +0100
Revision: 1909
Author: gradator
Date: 2011-11-04 22:43:46 +0100 (Fri, 04 Nov 2011)
Log Message:
-----------
only administrators should be allowed to removed someone from a group, in order to switch all files owned by this user to another one and to change the owner on some VHFFS object the user might have created into the group
Modified Paths:
--------------
branches/vhffs-4.3/vhffs-panel/group/prefs.pl
Modified: branches/vhffs-4.3/vhffs-panel/group/prefs.pl
===================================================================
--- branches/vhffs-4.3/vhffs-panel/group/prefs.pl 2011-11-02 22:22:08 UTC (rev 1908)
+++ branches/vhffs-4.3/vhffs-panel/group/prefs.pl 2011-11-04 21:43:46 UTC (rev 1909)
@@ -113,6 +113,8 @@
$panel->add_error( gettext( 'You\'re not allowed to do this (ACL rights)' ) );
} elsif( $uid == $group->get_owner_uid ) {
$panel->add_error( gettext('You cannot remove the owner of the group') );
+ } elsif( not $user->is_admin ) {
+ $panel->add_error( gettext('Only an administrator can remove someone from a group, please contact the administration team') );
} elsif( $group->remove_user($uid) ) {
$panel->add_info( gettext('This user will be removed from this group as soon as possible') );
} else {