You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
For disabling specific UI elements (similar to 9c4ec26) we suggest to work with permissions. Web queries permissions for the current user via https://your-ocis-instance/api/v0/settings/permissions-list. It simply returns an array of strings. On the server side, these permissions can be individually mapped to user roles.
The relevant ones to achieve similar as in 9c4ec26 are:
Favorites.List.all for enabling/disabling the Favorites nav item
Favorites.Write.all for enabling/disabling the "Mark as favorite" action
Shares.Write.all for enabling/disabling creating shares (also disables the views "Shared with me" and "Shared via link")
Drives.Create.all for enabling/disabling creating Spaces/Projects
PublicLink.Write.all for enabling/disabling creating public links
One thing that currently can't be controlled via permissions is the trash bin nav item. That's because even without a personal space, you can still access trash bins of other spaces.
@elizavetaRa@diocas could oyu please discuss how we should proceed with the trashbins for lightweight accounts?
Agreed in meeting on 26th of October, that lightweight accounts will be able to see all trash bins as a first iteration and wait for user feedback. Current idea is to also have an action from within spaces to directly navigate to the trash bin of the respective space (we had that already in the past).
Ftr: In addition to the permissions, we needed a way to determine early in the bootup process, whether a user has a lightweight account. In our PR to the CERN web-extensions repo we chose to check against the role name "user-light" .
Activity
JammingBen commentedon Oct 18, 2023
@diocas @elizavetaRa
The landing page is implemented via extension: cernbox/web-extensions#23
For disabling specific UI elements (similar to 9c4ec26) we suggest to work with permissions. Web queries permissions for the current user via
https://your-ocis-instance/api/v0/settings/permissions-list. It simply returns an array of strings. On the server side, these permissions can be individually mapped to user roles.The relevant ones to achieve similar as in 9c4ec26 are:
Favorites.List.allfor enabling/disabling the Favorites nav itemFavorites.Write.allfor enabling/disabling the "Mark as favorite" actionShares.Write.allfor enabling/disabling creating shares (also disables the views "Shared with me" and "Shared via link")Drives.Create.allfor enabling/disabling creating Spaces/ProjectsPublicLink.Write.allfor enabling/disabling creating public linksOne thing that currently can't be controlled via permissions is the trash bin nav item. That's because even without a personal space, you can still access trash bins of other spaces.
tbsbdr commentedon Oct 19, 2023
@elizavetaRa @diocas could oyu please discuss how we should proceed with the trashbins for lightweight accounts?
kulmann commentedon Oct 26, 2023
Agreed in meeting on 26th of October, that lightweight accounts will be able to see all trash bins as a first iteration and wait for user feedback. Current idea is to also have an action from within spaces to directly navigate to the trash bin of the respective space (we had that already in the past).
dschmidt commentedon Oct 27, 2023
Ftr: In addition to the permissions, we needed a way to determine early in the bootup process, whether a user has a lightweight account. In our PR to the CERN web-extensions repo we chose to check against the role name "user-light" .
JammingBen commentedon Nov 14, 2023
Closing here since this is finished on our side. @elizavetaRa @diocas please feel free to create a new issue if you run into any trouble.