nextcloud / nextcloud/server

Undo "leave this share"

Open
#55,568 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement feature: sharing low
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

The "leave this share" action basically sets oc_share.permissions to 0 which cannot be undone afterwards by the users themselves or an admin.

Currently the means to undo this seem to be:

a) fix it manually via the DB (UPDATE oc_share SET permissions=1 WHERE ...)
b) remove group, save, readd group, save

Both are not ideal.

And it's even worse than that: an admin cannot even see the fact that someone left a share, can they?

A possible solution could be to display a users oc_share records in a separate view, with a reset button for those with permissions=0, so an admin could undo that.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the “leave this share” action and how it sets the oc_share permissions value to 0. Done should include an admin-visible way to identify such records and restore the share without direct database edits or removing and readding the group.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.