public function Security::untrustedPermissions in Security Review 8
Returns the permission strings that untrusted roles have.
Parameters
bool $group_by_role_id: Choose whether to group permissions by role ID.
Return value
array An array of the permissions untrusted roles have. If $groupByRoleId is true, the array key is the role ID, the value is the array of permissions the role has.
File
- src/
Security.php, line 169
Class
- Security
- Provides frequently used security-related data.
Namespace
Drupal\security_reviewCode
public function untrustedPermissions($group_by_role_id = FALSE) {
return $this
->rolePermissions($this
->untrustedRoles(), $group_by_role_id);
}