Function groupsAllowedTo
Retrieves a list of membergroups that are allowed to do the given permission. (on the given board) If board_id is not null, a board permission is assumed. The function takes different permission settings into account.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Members.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Members.php
string |
$permission |
The permission to check |
integer |
$board_id = null |
= null If set, checks permissions for the specified board |
array
|
An array containing two arrays - 'allowed', which has which groups are allowed to do it and 'denied' which has the groups that are denied |