Skip to content

Commit

Permalink
Merge pull request #152 from RRZE-Webteam/FAU-402
Browse files Browse the repository at this point in the history
[FAU-402] Disable single term view for degree program-related taxonomies
  • Loading branch information
zhyian authored Dec 26, 2024
2 parents b323d01 + e1c17b8 commit 515ef61
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 35 deletions.
58 changes: 24 additions & 34 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Infrastructure/Content/ContentModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private static function registerTaxonomies(TaxonomiesList $taxonomiesList): void
foreach ($taxonomiesList as $taxonomyClass) {
/** @var Taxonomy $taxonomyObject */
// phpcs:ignore NeutronStandard.Functions.DisallowCallUserFunc.CallUserFunc
$taxonomyObject = call_user_func([$taxonomyClass, 'public']);
$taxonomyObject = call_user_func([$taxonomyClass, 'editableOnly']);
$taxonomyObject = $taxonomyObject->merge([
'capabilities' => [
'manage_terms' => Capabilities::MANAGE_DEGREE_PROGRAM_TERMS,
Expand Down

0 comments on commit 515ef61

Please sign in to comment.