client-web icon indicating copy to clipboard operation
client-web copied to clipboard

BUG: SubSpace admins can't access the admin settings - Restricted

Open bobbykolev opened this issue 9 months ago • 1 comments

Describe the bug As a SubSpace admin (both Sub and SubSub levels) I'm unable to access the admin settings page.

To Reproduce

  1. Go to any SubSpace that you are an admin of it (and not global admin).
  2. Click on the settings icon in the left navigation panel.
  3. 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:

  1. Space admins get ADMIN privilege on the platform
  2. There is an ADMIN privilege on the platform (while there is PLATFORM_ADMIN privilege for that use case)
  3. Client is checking ADMIN privilege for admin routes and not PLATFORM_ADMIN
  4. 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:

image.png

bobbykolev avatar May 02 '24 09:05 bobbykolev

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.

bobbykolev avatar May 02 '24 15:05 bobbykolev

Tested OK on ACC env.

Comoque1 avatar May 17 '24 13:05 Comoque1