tiny bugfix on bundle permissions
This commit is contained in:
parent
7dba72ef66
commit
b8bba0b332
@ -54,8 +54,7 @@ class OCActorAccessControlHandler extends EntityAccessControlHandler {
|
|||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) {
|
protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) {
|
||||||
$bundle = $entity->bundle();
|
return AccessResult::allowedIfHasPermission($account, "add $entity_bundle entities");
|
||||||
return AccessResult::allowedIfHasPermission($account, "add $bundle entities");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user