-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only allow admins to delete tags #2512
Conversation
@nickvergessen, thanks for your PR! By analyzing the history of the files in this pull request, we identified @MorrisJobke and @LukasReschke to be potential reviewers. |
cc @nextcloud/designers - maybe @skjnldsv want to look into this |
@MorrisJobke CI runs amok again – can you check? |
Yes - tests are failing because of changed behaviour. not-my-business |
@MorrisJobke Thou shall click through all links: |
|
|
Fixed, but the tests are still broken ;) |
b118862
to
afe16d5
Compare
Updated the test |
|
Signed-off-by: Joas Schilling <coding@schilljs.com>
afe16d5
to
b8e9d25
Compare
Signed-off-by: Joas Schilling <coding@schilljs.com>
Fixed, then JS was failing, also fixed now. /me hopes for 💚 |
@nickvergessen Can we move that to 12? I'd prefer to consider 11 closed for any non-critical merges. |
Well since the same issue exist since 9 already I guess we can |
I'm not a huge fan of this, that said, I'm not even a huge fan of the tagging at all because it is so confusing that everybody can create a tag but now only admins can delete etc… |
Well the idea is to not list tags in the dropdown, a user does not have applied to any files himself. In which case "deleting" would mean its not assigned to anything they see. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works 👍
$.ajax('/remote.php/dav/systemtags/2', {'method': 'DELETE'});
This should fail for a normal user 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by me.
Step 5 of #1465
@MorrisJobke @rullzer @ChristophWurst
Btw morris or christoph, can one of you fix the form and the label (admin only now). It seems somewhat cut off and the tooltip is behind it as well.