23 calls to AccessResult::allowedIfHasPermission()

AccessResultTest::testCacheContexts in core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
@covers ::addCacheContexts[[api-linebreak]] @covers ::resetCacheContexts[[api-linebreak]] @covers ::getCacheContexts[[api-linebreak]] @covers ::cachePerPermissions[[api-linebreak]] @covers ::cachePerUser[[api-linebreak]] @covers…
AggregatorFeedBlock::blockAccess in core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php
Indicates whether the block should be shown.
aggregator_jsonapi_aggregator_feed_filter_access in core/modules/aggregator/aggregator.module
Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'aggregator_feed'.
BaseFieldOverrideAccessControlHandler::checkAccess in core/lib/Drupal/Core/Field/BaseFieldOverrideAccessControlHandler.php
Performs access checks.
BlockContentAccessControlHandler::checkAccess in core/modules/block_content/src/BlockContentAccessControlHandler.php
Performs access checks.
CommentAccessControlHandler::checkCreateAccess in core/modules/comment/src/CommentAccessControlHandler.php
Performs create access checks.
CommentAccessControlHandler::checkFieldAccess in core/modules/comment/src/CommentAccessControlHandler.php
Default field access as determined by this access control handler.
CommentController::replyFormAccess in core/modules/comment/src/Controller/CommentController.php
Access check for the reply form.
CommentFieldItemList::access in core/modules/comment/src/CommentFieldItemList.php
Checks data value access.
EntityAccessControlHandler::checkAccess in core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php
Performs access checks.
EntityAccessControlHandler::checkCreateAccess in core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php
Performs create access checks.
EntityFormDisplayAccessControlHandler::checkAccess in core/lib/Drupal/Core/Entity/Entity/Access/EntityFormDisplayAccessControlHandler.php
Performs access checks.
EntityTestAccessControlHandler::checkAccess in core/modules/system/tests/modules/entity_test/src/EntityTestAccessControlHandler.php
Performs access checks.
EntityViewDisplayAccessControlHandler::checkAccess in core/lib/Drupal/Core/Entity/Entity/Access/EntityViewDisplayAccessControlHandler.php
Performs access checks.
entity_test_entity_field_access in core/modules/system/tests/modules/entity_test/entity_test.module
Implements hook_entity_field_access().
FeedAccessControlHandler::checkAccess in core/modules/aggregator/src/FeedAccessControlHandler.php
Performs access checks.
FeedAccessControlHandler::checkCreateAccess in core/modules/aggregator/src/FeedAccessControlHandler.php
Performs create access checks.
FilterFormatAccessControlHandler::checkAccess in core/modules/filter/src/FilterFormatAccessControlHandler.php
Performs access checks.
FormModeAccessCheck::access in core/modules/field_ui/src/Access/FormModeAccessCheck.php
Checks access to the form mode.
hook_entity_field_access in core/lib/Drupal/Core/Entity/entity.api.php
Control access to fields.
SystemTestController::permissionDependentContent in core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php
Shows permission-dependent content.
TestBlockInstantiation::blockAccess in core/modules/block/tests/modules/block_test/src/Plugin/Block/TestBlockInstantiation.php
Indicates whether the block should be shown.
ViewModeAccessCheck::access in core/modules/field_ui/src/Access/ViewModeAccessCheck.php
Checks access to the view mode.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.