[vhffs-dev] [1910] 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] [1910] 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:45:51 +0100
Revision: 1910
Author: gradator
Date: 2011-11-04 22:45:50 +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:
--------------
trunk/vhffs-panel/group/prefs.pl
Modified: trunk/vhffs-panel/group/prefs.pl
===================================================================
--- trunk/vhffs-panel/group/prefs.pl 2011-11-04 21:43:46 UTC (rev 1909)
+++ trunk/vhffs-panel/group/prefs.pl 2011-11-04 21:45:50 UTC (rev 1910)
@@ -105,6 +105,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 {