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
When sharing or resharing, permissions need to be computed based on different criterion:
reshare permissions are computed based on the parent share permissions
a shared folder must always be unsharable from self: so it has an extra DELETE permission
ext storage mount points have extra permissions that need to be computed
remote shares have different permissions
link shares ... based on whether "allow upload" is globally allowed
whether resharing is allowed globally
...
The logic for all of these is spread across multiple mechanisms.
Some are computed on the server side, some on the JS side, some in the share dropdown, some using the special data-share-permissions attribute.
The idea is to refactor all this into a central place instead of spread all over the place.
Activity