mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
permission stuff .. what else ...
git-svn-id: file:///svn/phpbb/trunk@2860 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -105,19 +105,41 @@ if ( isset($HTTP_POST_VARS['update']) )
|
||||
{
|
||||
switch ( $HTTP_POST_VARS['type'] )
|
||||
{
|
||||
case 'group':
|
||||
foreach ( $HTTP_POST_VARS['entries'] as $group_id )
|
||||
{
|
||||
$acl->set_acl($forum_id, false, $group_id, $HTTP_POST_VARS['option']);
|
||||
}
|
||||
break;
|
||||
case 'user':
|
||||
foreach ( $HTTP_POST_VARS['entries'] as $user_id )
|
||||
{
|
||||
$acl->set_acl($forum_id, $user_id, false, $HTTP_POST_VARS['option']);
|
||||
}
|
||||
$set = 'set_acl_user';
|
||||
break;
|
||||
|
||||
case 'group':
|
||||
$set = 'set_acl_group';
|
||||
break;
|
||||
}
|
||||
|
||||
foreach ( $HTTP_POST_VARS['entries'] as $id )
|
||||
{
|
||||
$acl->$set($forum_id, $id, $HTTP_POST_VARS['option']);
|
||||
}
|
||||
|
||||
message_die(MESSAGE, 'Permissions updated successfully');
|
||||
}
|
||||
else if ( isset($HTTP_POST_VARS['delete']) )
|
||||
{
|
||||
switch ( $HTTP_POST_VARS['type'] )
|
||||
{
|
||||
case 'user':
|
||||
$set = 'delete_acl_user';
|
||||
break;
|
||||
|
||||
case 'group':
|
||||
$set = 'delete_acl_group';
|
||||
break;
|
||||
}
|
||||
|
||||
foreach ( $HTTP_POST_VARS['entries'] as $id )
|
||||
{
|
||||
$acl->$set($forum_id, $id, $HTTP_POST_VARS['option']);
|
||||
}
|
||||
|
||||
message_die(MESSAGE, 'Permissions updated successfully');
|
||||
}
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user