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

Additional permissions for creating shares and favorites #7497

Closed
3 tasks
JammingBen opened this issue Oct 16, 2023 · 8 comments · Fixed by #7721
Closed
3 tasks

Additional permissions for creating shares and favorites #7497

JammingBen opened this issue Oct 16, 2023 · 8 comments · Fixed by #7721
Assignees
Labels
Category:Enhancement Add new functionality

Comments

@JammingBen
Copy link
Contributor

JammingBen commented Oct 16, 2023

CERN would like to disable creating shares and favorites for their lightweight accounts. We figured it would be best to work with permissions here, as they offer maximum flexibility and could be a benefit for us as well in the future.

That would mean we need new permissions:

  • Favorites.ReadWrite
  • Favorites.List
  • Favorites.Write
  • Shares.Write

Also see owncloud/web#9381.

Acceptance criteria

  • Favorites.List allows / denies the Favorites Listing Request
  • Favorites.Write is implemented to be enforced on marking/unmark files as favourites
  • Share.Write permission denies / allows sharing completely for a user on all share CUD requests. (User, Group)
@JammingBen
Copy link
Contributor Author

@micbar Any opinions on this?

@micbar
Copy link
Contributor

micbar commented Oct 17, 2023

I understand the Shares.Write permission.

What about the favourites? Why ReadWrite?

@JammingBen
Copy link
Contributor Author

What about the favourites? Why ReadWrite?

From a Web perspective it's about marking files as favourite (= Write) and accessing favourite files (= Read). Simply Write alone would work as well though, if that's better for you. We would then handle the read-permission implicitly based on the write-permission.

@micbar
Copy link
Contributor

micbar commented Oct 17, 2023

Ah you mean the "list-all-favourites" permission?

That would be a new one IMO Favorites.List

@micbar
Copy link
Contributor

micbar commented Oct 17, 2023

Just to be on the same page, should the use also not be able to see the favorite flag in the file list?

Because that is difficult from a backend POV. We currently do not distinguish different metadata.

@JammingBen
Copy link
Contributor Author

Just to be on the same page, should the use also not be able to see the favorite flag in the file list?

No, it's about not showing the Favorite-navitem. The flag itself will never show when the user doesn't have permissions to mark files as favorite, so that's okay.

Favorites.List would be fine for us as well. You mean additionally to Favorites.Write, right?

@micbar
Copy link
Contributor

micbar commented Oct 17, 2023

Favorites.List would be fine for us as well. You mean additionally to Favorites.Write, right?

Yes.

@JammingBen
Copy link
Contributor Author

Sounds good! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category:Enhancement Add new functionality
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants