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