Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

GH-61 - Fixing RDF taxonomy access bug. #62

Open
wants to merge 1 commit into
base: 8.x-1.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/rdf_taxonomy/rdf_taxonomy.module
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function rdf_taxonomy_entity_base_field_info_alter(&$fields, EntityTypeInterface
* Implements hook_ENTITY_TYPE_access().
*/
function rdf_taxonomy_taxonomy_vocabulary_access(VocabularyInterface $vocabulary, $operation, AccountInterface $account) {
$locked = ($operation !== 'view') && $vocabulary->getThirdPartySetting('rdf_taxonomy', 'locked', TRUE);
$locked = (!in_array($operation, ['view', 'access taxonomy overview'])) && $vocabulary->getThirdPartySetting('rdf_taxonomy', 'locked', TRUE);
return AccessResult::forbiddenIf($locked);
}

Expand Down