boardsAllowedTo

Description

Returns a list of boards on which the user has the specified permission.

Syntax

mixed boardsAllowedTo (string $permission)



Parameter $permission

Expected type: String
Description: A permission to check for



Return value

Expected type: Mixed
Description:

Possible types
Allowed values Description
Array An empty array - indicates that the user does not have that permission on any board
Array of Integers An array containing 0 if they can do it on all boards or an array of IDs of specific boards where they can do this


Notes

  • 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.
  • Only checks a single permission (easier and less confusing)
Advertisement: