Skip to content

Refactor/fix share permission masking mess #13202

Closed

Description

@PVince81

When sharing or resharing, permissions need to be computed based on different criterion:

  1. reshare permissions are computed based on the parent share permissions
  2. a shared folder must always be unsharable from self: so it has an extra DELETE permission
  3. ext storage mount points have extra permissions that need to be computed
  4. remote shares have different permissions
  5. link shares ... based on whether "allow upload" is globally allowed
  6. whether resharing is allowed globally
  7. ...

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.

CC @DeepDiver1975 @icewind1991 @schiesbn

Activity

  1. ghost added this to the milestone on Sep 22, 2015
  2. modified the milestones: , on Feb 11, 2016
  3. modified the milestones: , on Jun 15, 2016
  4. modified the milestones: backlog, 10.0 on Jan 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions