mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/13544] Fixing wrong SQL query for permission_unset for roles
PHPBB3-13544
This commit is contained in:
parent
1c6ebcf02b
commit
73d1bf9fea
1 changed files with 2 additions and 1 deletions
|
@ -537,7 +537,8 @@ class permission implements \phpbb\db\migration\tool\tool_interface
|
|||
}
|
||||
|
||||
$sql = 'DELETE FROM ' . ACL_ROLES_DATA_TABLE . '
|
||||
WHERE ' . $this->db->sql_in_set('auth_option_id', $to_remove);
|
||||
WHERE ' . $this->db->sql_in_set('auth_option_id', $to_remove) . '
|
||||
AND role_id = ' . $this->db->sql_escape($role_id);
|
||||
$this->db->sql_query($sql);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue