Not sure if it's helpful, but based on searchingI am unable to identify where this query comes from to try and clear it up?
AND NOT (ug.group_leader = 1 AND g.group_skip_auth = 1)
, it appears to be from phpbb/auth/acl_raw_data.php
:Code:
// Now grab group settings - non-role specific...$sql_ary[] = 'SELECT ug.user_id, a.forum_id, a.auth_setting, a.auth_option_id' . $sql_opts_select . 'FROM ' . ACL_GROUPS_TABLE . ' a, ' . USER_GROUP_TABLE . ' ug, ' . GROUPS_TABLE . ' g' . $sql_opts_from . 'WHERE a.auth_role_id = 0 ' .(($sql_opts_from) ? 'AND a.auth_option_id = ao.auth_option_id ' : '') . 'AND a.group_id = ug.group_idAND g.group_id = ug.group_idAND ug.user_pending = 0AND NOT (ug.group_leader = 1 AND g.group_skip_auth = 1)' . (($sql_user) ? 'AND ug.' . $sql_user : '') . "$sql_forum$sql_opts";// Now grab group settings - role specific...$sql_ary[] = 'SELECT ug.user_id, a.forum_id, r.auth_setting, r.auth_option_id' . $sql_opts_select . 'FROM ' . ACL_GROUPS_TABLE . ' a, ' . USER_GROUP_TABLE . ' ug, ' . GROUPS_TABLE . ' g, ' . ACL_ROLES_DATA_TABLE . ' r' . $sql_opts_from . 'WHERE a.auth_role_id = r.role_id ' .(($sql_opts_from) ? 'AND r.auth_option_id = ao.auth_option_id ' : '') . 'AND a.group_id = ug.group_idAND g.group_id = ug.group_idAND ug.user_pending = 0AND NOT (ug.group_leader = 1 AND g.group_skip_auth = 1)' . (($sql_user) ? 'AND ug.' . $sql_user : '') . "$sql_forum$sql_opts";
Statistics: Posted by HB — Sat Jan 13, 2024 8:20 pm