1 user_permission_layout_access.inc | UserPermissionLayoutAccess::checkAccess() |
Checks for access based on the available context.
Return value
boolean: The result of the access check.
Overrides LayoutAccess::checkAccess
File
- core/
modules/ layout/ plugins/ access/ user_permission_layout_access.inc, line 37 - Plugin to provide access control based on user permission strings.
Class
- UserPermissionLayoutAccess
- @file Plugin to provide access control based on user permission strings.
Code
function checkAccess() {
$account = $this->contexts['user']->data;
return user_access($this->settings['permission'], $account);
}