Skip to content
Snippets Groups Projects

Issue #3317401: Permission 'view terms in' is not inherited for 'view label' operation

1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
@@ -94,9 +94,12 @@ class TermAccessControlHandler extends OriginalTermAccessControlHandler {
@@ -94,9 +94,12 @@ class TermAccessControlHandler extends OriginalTermAccessControlHandler {
}
}
elseif ($operation === 'view label') {
elseif ($operation === 'view label') {
return $entity->isPublished() ? [
return $entity->isPublished() ? [
 
"view terms in {$entity->bundle()}",
 
"view any term",
"view term names in {$entity->bundle()}",
"view term names in {$entity->bundle()}",
'view any term name',
'view any term name',
] : [
] : [
 
"view unpublished terms in {$entity->bundle()}",
"view unpublished term names in {$entity->bundle()}",
"view unpublished term names in {$entity->bundle()}",
'view any unpublished term name',
'view any unpublished term name',
];
];
Loading