Skip to content
Snippets Groups Projects
Unverified Commit ccb25cc8 authored by Doug Green's avatar Doug Green
Browse files

#3412420 - Remove "access block library" requirement fro block_content create.

parent 7ea369d9
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,6 @@ protected function checkAccess(EntityInterface $entity, $operation, AccountInter
protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) {
return AccessResult::allowedIfHasPermissions($account, [
'create ' . $entity_bundle . ' block content',
'access block library',
])->orIf(AccessResult::allowedIfHasPermissions($account, [
'administer block content',
]));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment