You are here

function _saferpermissions_is_restricted in Safer Permissions 7

Checks if a permission is restricted.

Parameters

string $name: Name of the permission.

array $info: Permission declaration.

Return value

bool

1 string reference to '_saferpermissions_is_restricted'
saferpermissions_disallowed_permissions_anonymous in ./saferpermissions.module
Gathers the list of permission which should be banned for anonymous users.

File

./saferpermissions.module, line 110
Disallows unwanted permissions for anonymous.

Code

function _saferpermissions_is_restricted($name, array $info) {
  return !empty($info['restrict access']);
}