Function __global->has_submit_permission
Definitions
sources/permissions.php
- Find if a member has permission to submit.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: bool
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$range | string | required parameter | N/A | N/A | The range of privilege we are checking to see if they have; these ranges are like trust levels |
$member_id | MEMBER | required parameter | N/A | N/A | The member being checked whether to have the access |
$ip | IP | required parameter | N/A | N/A | The member's IP address |
$page | ?ID_TEXT | required parameter | N/A | N/A | The page being checked (null: current page) |
$cats | ?array | Null | N/A | N/A | A list of cat details to require access to (c-type-1,c-id-1,c-type-2,c-d-2,...) (null: N/A) |
Return
- Whether the member can submit in this range
- Type: boolean
- Set: N/A
- Range: N/A