Merge pull request #3341 from brunoais/ticket/13544

[ticket/13544] Fixing wrong SQL query for permission_unset() for roles
This commit is contained in:
Joas Schilling 2015-01-30 17:45:21 +01:00
commit e5f2eee167

View file

@ -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 = ' . (int) $role_id;
$this->db->sql_query($sql);
break;