Skip to content

Commit

Permalink
MBS-12484: Hide genre alias edit links if limited (#2581)
Browse files Browse the repository at this point in the history
Only the privileged “relationship editors” are allowed to edit genres
thus genre aliases. Edit links do not need to be shown otherwise as it
will just be returning an error page “Forbidden Request”.
  • Loading branch information
yvanzo authored Jul 2, 2022
1 parent 13bdc37 commit 897b35c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions root/components/Aliases/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function canEdit($c: CatalystContextT, entityType: string) {
switch (entityType) {
case 'area':
return isLocationEditor($c.user);
case 'genre':
case 'instrument':
return isRelationshipEditor($c.user);
default:
Expand Down

0 comments on commit 897b35c

Please sign in to comment.