Function __global->get_permission_where_clause_groups
Definitions
sources/permissions.php
- Get the SQL WHERE clause to select for any usergroups the given member is in (gets combined with some condition(s), to check against every usergroup).
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: string
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$member_id | MEMBER | required parameter | N/A | N/A | The member who's usergroups will be OR'd |
$consider_clubs | boolean | True | N/A | N/A | Whether to consider clubs (pass this false if considering page permissions, which work via explicit-denys across all groups, which could not happen for clubs as those denys could not have been set in the UI) |
$field_prefix | string | Blank (empty string) | N/A | N/A | Prefix (based on table aliasing) for field name |
Return
- The SQL query fragment (null: admin, so permission regardless)
- Type: ?string
- Set: N/A
- Range: N/A