Function boardsAllowedTo
Return the boards a user has a certain (board) permission on. (array(0) if all.) - returns a list of boards on which the user is allowed to do the specified permission. - returns an array with only a 0 in it if the user has permission to do this on every board. - returns an empty array if he or she cannot do this on any board. If check_access is true will also make sure the group has proper access to that board.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Security.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Security.php
string|array |
$permissions |
A single permission to check or an array of permissions to check |
boolean |
$check_access = true |
Whether to check only the boards the user has access to |
boolean |
$simple = true |
Whether to return a simple array of board IDs or one with permissions as the keys |
array
|
An array of board IDs or an array containing 'permission' => 'board,board2,...' pairs |