Checks if a set of permissions contains a specific permission.
The permissions to check.
The permission to check for.
Whether the admin permission should be taken into consideration.
Checks if a set of permissions contains a specific permission.