Skip to content

Commit

Permalink
Merge pull request #279 from swisstopo/bug/assets-252_fix-non-admin-u…
Browse files Browse the repository at this point in the history
…ser-access

Fix bug for non-admin users
  • Loading branch information
vej-ananas authored Oct 2, 2024
2 parents 3d9734b + 4f946ce commit 4e5d306
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const parse = (data: SelectedWorkgroup, isAdmin: boolean, isAnonymousMode = fals

if (data.users.length !== 0) {
simpleWorkgroup.role = data.users[0].role;
return simpleWorkgroup;
}

if (isAdmin) {
Expand Down

0 comments on commit 4e5d306

Please sign in to comment.