Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Federated and lightweight accounts #9381

Closed
tbsbdr opened this issue Jul 10, 2023 · 5 comments
Closed

Federated and lightweight accounts #9381

tbsbdr opened this issue Jul 10, 2023 · 5 comments

Comments

@tbsbdr
Copy link
Contributor

tbsbdr commented Jul 10, 2023

relates to 9c4ec26

Reduced functionality depending on user account type.

@JammingBen
Copy link
Contributor

JammingBen commented 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.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.

@tbsbdr
Copy link
Contributor Author

tbsbdr commented Oct 19, 2023

@elizavetaRa @diocas could oyu please discuss how we should proceed with the trashbins for lightweight accounts?

@kulmann
Copy link
Member

kulmann commented Oct 26, 2023

@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).

@dschmidt
Copy link
Member

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants