Skip to content
Snippets Groups Projects
Commit 941ff577 authored by Martin Anderson-Clutz's avatar Martin Anderson-Clutz
Browse files

Merge branch '1.3.x' into 1.4.x

parents 788ff20e d38bf0b5
Branches
Tags
No related merge requests found
......@@ -37,7 +37,14 @@ class StorageAccessControlHandler extends EntityAccessControlHandler {
->addCacheableDependency($entity);
}
return AccessResult::allowedIfHasPermission($account, 'view unpublished storage entities')
return AccessResult::allowedIfHasPermissions(
$account,
[
'view unpublished storage entities',
'view unpublished ' . $entity->bundle() . ' storage entities',
],
'OR'
)
->cachePerPermissions()
->addCacheableDependency($entity);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment