Skip to content

Instantly share code, notes, and snippets.

@dawehner
Created November 23, 2016 08:46
Show Gist options
  • Select an option

  • Save dawehner/d7364d96f44691ebf52e2ecb075a67af to your computer and use it in GitHub Desktop.

Select an option

Save dawehner/d7364d96f44691ebf52e2ecb075a67af to your computer and use it in GitHub Desktop.
core/lib/Drupal/Core/Entity/EntityListBuilder.php:142: if ($entity->access('update') && $entity->hasLinkTemplate('edit-form')) {
core/modules/comment/src/CommentLazyBuilders.php:176: if ($entity->access('update')) {
core/modules/comment/src/Plugin/Action/SaveComment.php:31: return $object->access('update', $account, $return_as_object);
core/modules/comment/src/Plugin/Action/PublishComment.php:33: ->andIf($object->access('update', $account, TRUE));
core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php:122: $result = $object->access('update', $account, TRUE)
core/modules/comment/src/Plugin/Action/UnpublishComment.php:33: ->andIf($object->access('update', $account, TRUE));
core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php:229: $may_update = $set['comment']->access('update', $set['user']) && $set['comment']->subject->access('edit', $set['user']);
core/modules/content_translation/src/Controller/ContentTranslationController.php:183: $update_access = $entity->access('update', NULL, TRUE);
core/modules/content_translation/src/Controller/ContentTranslationController.php:346: $form_state_additions['content_translation']['translation_form'] = !$entity->access('update');
core/modules/field_ui/src/FieldConfigListBuilder.php:159: if ($entity->access('update') && $entity->hasLinkTemplate("{$entity->getTargetEntityTypeId()}-field-edit-form")) {
core/modules/file/tests/src/Kernel/AccessTest.php:80: $this->assertFalse($this->file->access('update'));
core/modules/file/tests/src/Kernel/AccessTest.php:84: $this->assertTrue($this->file->access('update'));
core/modules/node/src/Access/NodePreviewAccessCheck.php:51: return $node_preview->access('update', $account, TRUE);
core/modules/node/src/Controller/NodeController.php:171: $revert_permission = (($account->hasPermission("revert $type revisions") || $account->hasPermission('revert all revisions') || $account->hasPermission('administer nodes')) && $node->access('update'));
core/modules/node/src/NodeForm.php:294: '#access' => $preview_mode != DRUPAL_DISABLED && ($node->access('create') || $node->access('update')),
core/modules/node/src/Plugin/Action/AssignOwnerNode.php:138: $result = $object->access('update', $account, TRUE)
core/modules/node/src/Plugin/Action/DemoteNode.php:32: $result = $object->access('update', $account, TRUE)
core/modules/node/src/Plugin/Action/PromoteNode.php:32: $access = $object->access('update', $account, TRUE)
core/modules/node/src/Plugin/Action/PublishNode.php:32: $result = $object->access('update', $account, TRUE)
core/modules/node/src/Plugin/Action/SaveNode.php:34: return $object->access('update', $account, $return_as_object);
core/modules/node/src/Plugin/Action/StickyNode.php:32: $access = $object->access('update', $account, TRUE)
core/modules/node/src/Plugin/Action/UnpublishByKeywordNode.php:69: $access = $object->access('update', $account, TRUE)
core/modules/node/src/Plugin/Action/UnpublishNode.php:32: $access = $object->access('update', $account, TRUE)
core/modules/node/src/Plugin/Action/UnstickyNode.php:32: $access = $object->access('update', $account, TRUE)
core/modules/node/src/Tests/Views/BulkFormAccessTest.php:110: $this->assertEqual(FALSE, $node->access('update', $account), 'The node may not be edited.');
core/modules/quickedit/src/Access/EditEntityFieldAccessCheck.php:44: return $entity->access('update', NULL, TRUE)->andIf($entity->get($field_name)->access('edit', NULL, TRUE));
core/modules/rest/src/Plugin/rest/resource/EntityResource.php:207: if (!$original_entity->access('update')) {
core/modules/system/tests/modules/action_test/src/Plugin/Action/SaveEntity.php:31: return $object->access('update', $account, $return_as_object);
core/modules/user/src/Plugin/Action/BlockUser.php:39: ->andIf($object->access('update', $account, TRUE));
core/modules/user/src/Plugin/Action/ChangeUserRoleBase.php:96: $access = $object->access('update', $account, TRUE)
core/modules/user/src/Plugin/Action/UnblockUser.php:36: ->andIf($object->access('update', $account, TRUE));
core/modules/user/src/Tests/Views/BulkFormAccessTest.php:45: $this->assertFalse($no_edit_user->access('update', $admin_user));
core/modules/user/src/Tests/Views/BulkFormAccessTest.php:68: $this->assertTrue($normal_user->access('update', $admin_user));
core/modules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php:163: $access = $node->access('update');
core/tests/Drupal/Tests/Core/Entity/EntityAccessCheckTest.php:46: $node->access('update', $account, TRUE)->willReturn(AccessResult::allowed());
core/tests/Drupal/Tests/Core/Entity/EntityAccessCheckTest.php:69: $node->access('update', $account, TRUE)->willReturn(AccessResult::allowed());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment