Skip to content

Cannot share with user with more permissions when user has access through group read-only #25359

@PVince81

Description

@PVince81

Steps

  1. Create two users "user1" and "user2"
  2. Put "user2" in two groups "groupa" and "groupb"
  3. Login as "user1"
  4. Create a folder "test"
  5. Share "test" with "groupa" but remove edit permissions
  6. Share "test" with "user2" and allow editing
  7. Share "test" with "groupb" and allow editing
  8. Login as "user2"
  9. Check permissions and how many folders were received

Expected result

"user2" received a single folder "test" with edit permissions

Actual result

At step 6 (direct user share), OC doesn't allow sharing because it's already shared.
At step 7 it works however.

Versions

Observed in v9.0.3.
Regression from v8.2.

@owncloud/sharing

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions