Skip to content

Commit 86634d8

Browse files
committed
fix: import role hidden
1 parent 8413c98 commit 86634d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/auth.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export function getAdminRoles(roles: KNOWN_ROLES[]): AdminRoles | null {
8181
const viewer = superUser || roles.indexOf('ROLE_MAPSTORE_ADMIN') > -1
8282
const admin =
8383
superUser || console || catalog || viewer || catalogAdmin
84-
if (!admin) return null
84+
if (!admin && roles.indexOf('ROLE_IMPORT') === -1) return null
8585
return {
8686
superUser,
8787
admin,

0 commit comments

Comments
 (0)