mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
fix "copy permissions" as well as shortening the $acl_url for redirecting to the permissions screen.
git-svn-id: file:///svn/phpbb/trunk@5715 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -45,7 +45,24 @@ class acp_permissions
|
||||
$user_id = request_var('user_id', array(0));
|
||||
|
||||
$group_id = request_var('group_id', array(0));
|
||||
$select_all_groups = request_var('select_all_groups', 0);
|
||||
|
||||
// If select all groups is set, we pre-build the group id array (this option is used for other screens to link to the permission settings screen)
|
||||
if ($select_all_groups)
|
||||
{
|
||||
// Add default groups to selection
|
||||
$sql = 'SELECT group_id
|
||||
FROM ' . GROUPS_TABLE . '
|
||||
WHERE group_type = ' . GROUP_SPECIAL;
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
$group_id[] = $row['group_id'];
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
}
|
||||
|
||||
// Map usernames to ids and vice versa
|
||||
if ($usernames)
|
||||
{
|
||||
|
Reference in New Issue
Block a user