function ModuleGrantsBaseTestCase::getUserPermissions in Module Grants 7
4 calls to ModuleGrantsBaseTestCase::getUserPermissions()
- ModuleGrantsBaseTestCase::assertEntityFieldQueryAlter in ./
module_grants.test - Based on node.test's test methods
- ModuleGrantsBaseTestCase::assertNodeAccess in ./
module_grants.test - Asserts node_access() correctly grants or denies access. Copied from node.test
- ModuleGrantsBaseTestCase::assertNodeQueryAlter in ./
module_grants.test - Based on node.test's test methods
- ModuleGrantsBaseTestCase::assertNonBaseTableViewAccess in ./
module_grants.test
File
- ./
module_grants.test, line 150
Class
Code
function getUserPermissions($account) {
$permissions = array();
foreach (user_role_permissions($account->roles) as $rid => $perms) {
$permissions += array_keys(array_filter($perms));
}
return $permissions;
}