membersAllowedTo

Description

Retrieves a list of members that are allowed to do the given permission.

Syntax

array membersAllowedTo (string $permission[, int $board_id])



Parameter $permission

Expected type: String
Description: The permission



Parameter $board_id

Expected type: Integer
Description: If specified, finds any members who have the specified permission on this board.



Return value

Expected type: Array of Integers
Description: An array of IDs of the members who have the specified permission


Notes

  • If board_id is not null, a board permission is assumed.
  • Takes different permission settings into account.
  • Takes possible moderators (on board 'board_id') into account.
  • Returns an array containing member IDs.
Advertisement: