Skip to content

Commit

Permalink
fix: import role hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
f-necas committed Mar 14, 2024
1 parent 8413c98 commit 86634d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export function getAdminRoles(roles: KNOWN_ROLES[]): AdminRoles | null {
const viewer = superUser || roles.indexOf('ROLE_MAPSTORE_ADMIN') > -1
const admin =
superUser || console || catalog || viewer || catalogAdmin
if (!admin) return null
if (!admin && roles.indexOf('ROLE_IMPORT') === -1) return null
return {
superUser,
admin,
Expand Down

0 comments on commit 86634d8

Please sign in to comment.