SEMOSS / semoss-ui

Apache License 2.0
17 stars 2 forks source link

[TASK] Fix admin mode on our settings flow in UI #207

Open johbaxter opened 2 months ago

johbaxter commented 2 months ago

Description

While in Admin Mode on the settings page, I open an engine that I do not have access to. When I click settings for either -(function, storage, model, database, vector, and app) and look at the rest calls that are there. One which is a /getUserEnginePermission that is not the admin endpoint and then another one just below that, which is /getProjectUsers is the admin endpoint. The /getUserEnginePermission should hit our admin endpoint just like getProjectUsers

Existing

For this flow currently it hits our non-admin route

http://localhost:9090/vha-supply/api/auth/project/getUserProjectPermission?projectId=11452f9f-ad7a-4853-9b6d-c03172ca20dd

References

https://github.com/SEMOSS/community/issues/3

trevorzylks commented 2 months ago

Fix: while in adminMode, do not make permission based network calls.

trevorzylks commented 2 months ago

Linked issue: https://github.com/SEMOSS/Semoss/issues/40