allowedTo

Check the user's permissions. checks whether the user is allowed to do permission. (ie. post_new.) If boards is specified, checks those boards instead of the current one. If any is true, will return true if the user has the permission on any of the specified boards Always returns true if the user is an administrator.
Parameters Summary
string|array $permission
int|array $boards = NULL
bool $any = false