We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8413c98 commit 86634d8Copy full SHA for 86634d8
src/auth.ts
@@ -81,7 +81,7 @@ export function getAdminRoles(roles: KNOWN_ROLES[]): AdminRoles | null {
81
const viewer = superUser || roles.indexOf('ROLE_MAPSTORE_ADMIN') > -1
82
const admin =
83
superUser || console || catalog || viewer || catalogAdmin
84
- if (!admin) return null
+ if (!admin && roles.indexOf('ROLE_IMPORT') === -1) return null
85
return {
86
superUser,
87
admin,
0 commit comments