client-web
client-web copied to clipboard
BUG: SubSpace admins can't access the admin settings - Restricted
Describe the bug As a SubSpace admin (both Sub and SubSub levels) I'm unable to access the admin settings page.
To Reproduce
- Go to any SubSpace that you are an admin of it (and not global admin).
- Click on the settings icon in the left navigation panel.
- See the error page - Restricted
Expected behavior The subspace settings should load.
Screenshots Private Zenhub Video
Additional context
It's happening because of the following reasons combined:
- Space admins get ADMIN privilege on the platform
- There is an ADMIN privilege on the platform (while there is PLATFORM_ADMIN privilege for that use case)
- Client is checking ADMIN privilege for admin routes and not PLATFORM_ADMIN
- Client is checking platform admin privilege for ALL admin routes and not just top level ones
Here are the links to the subspace and the admin settings: https://acc-alkem.io/bobtestspace101/challenges/testsubspace-9802 https://acc-alkem.io/admin/spaces/bobtestspace101/challenges/testsubspace-9802
It seems that the client checks the platform level rights which are limited:

The bug is persistent with my account on ACC. However, @Comoque1 & @EmiliaPavlova are unable to reproduce it.
@Comoque1 , please double-check and close if you think it's an isolated issue.
Tested OK on ACC env.