Undo "leave this share"
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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