Function Module_topics->check_has_mod_access
Definitions
forum/pages/modules/topics.php
- Check there is at least some moderation access over the given topic.This is here to prevent snooping into the details of things (the backend provides the true security).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $topic_id | AUTO_LINK | No | No | required parameter | N/A | N/A | The topic ID |
Preview
Code (PHP)
/**
* Check there is at least some moderation access over the given topic.This is here to prevent snooping into the details of things (the backend provides the true security).
*
* @param AUTO_LINK $topic_id The topic ID
*/
public function check_has_mod_access(int $topic_id)
* Check there is at least some moderation access over the given topic.This is here to prevent snooping into the details of things (the backend provides the true security).
*
* @param AUTO_LINK $topic_id The topic ID
*/
public function check_has_mod_access(int $topic_id)
