Search for hasPermission
- Search 7.x for hasPermission
- Search 9.5.x for hasPermission
- Search 8.9.x for hasPermission
- Search 11.x for hasPermission
- Other projects
Title | Object type | File name | Summary |
---|---|---|---|
AccessResult::allowedIfHasPermission | function | core/ |
Creates an allowed access result if the permission is present, neutral otherwise. |
AccessResult::allowedIfHasPermissions | function | core/ |
Creates an allowed access result if the permissions are present, neutral otherwise. |
AccessResultTest::providerTestAllowedIfHasPermissions | function | core/ |
Provides data for the testAllowedIfHasPermissions() method. |
AccessResultTest::testAllowedIfHasPermissions | function | core/ |
Tests allowedIfHasPermissions(). |
AccountInterface::hasPermission | function | core/ |
Checks whether a user has a certain permission. |
AccountProxy::hasPermission | function | core/ |
|
CalculatedPermissionsItem::hasPermission | function | core/ |
Returns whether this item has a given permission. |
CalculatedPermissionsItemInterface::hasPermission | function | core/ |
Returns whether this item has a given permission. |
CalculatedPermissionsItemTest::testHasPermission | function | core/ |
Tests the permission check when the admin flag is not set. |
CalculatedPermissionsItemTest::testHasPermissionWithAdminFlag | function | core/ |
Tests the permission check when the admin flag is set. |
PermissionChecker::hasPermission | function | core/ |
|
PermissionCheckerInterface::hasPermission | function | core/ |
Checks whether an account has a permission. |
PermissionCheckerTest::testHasPermission | function | core/ |
Tests the hasPermission method under normal circumstances. |
PermissionCheckerTest::testHasPermissionEmpty | function | core/ |
Tests the hasPermission method when no policy added something. |
PermissionCheckerTest::testHasPermissionMixed | function | core/ |
Tests the hasPermission method when mixed scopes and identifiers exist. |
PermissionCheckerTest::testHasPermissionOnlyContrib | function | core/ |
Tests the hasPermission method with only contrib scopes and identifiers. |
Role::hasPermission | function | core/ |
Checks if the role has a permission. |
RoleInterface::hasPermission | function | core/ |
Checks if the role has a permission. |
User::hasPermission | function | core/ |
|
UserSession::hasPermission | function | core/ |
|
UserSessionTest::testHasPermission | function | core/ |
Tests the has permission method. |
UserSessionTest::testHasPermissionLegacy | function | core/ |
Tests deprecation when permission is not a string. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.