HomePhorge

Delete Repository button: disable if not admin, but show popup to all

Description

Delete Repository button: disable if not admin, but show popup to all

Summary:
The "Delete Repository" button should be disabled, just like any other admin button in the page,
if you cannot edit the repository, so to do not cause anxiety situations to users without
editing permissions.

Moreover, probably, if you still want to click that disabled button,
you should still be allowed to see the super-nice related information message,
just because it's super-lovely, super-informative and it does nothing wrong.

Closes T15964

Test Plan:
Be normal user. See the button finally disabled. Click it, you finally see its related info popup instead "You shall not pass",
so you unlock extra documentation to read.

Be admin user. See the button still enabled. Click it, you still can see the info popup.

Reviewers: O1 Blessed Committers, avivey

Reviewed By: O1 Blessed Committers, avivey

Subscribers: avivey, tobiaswiese, Matthew, Cigaryno

Maniphest Tasks: T15964

Differential Revision: https://we.phorge.it/D25843

Details

Provenance
Valerio BozzolanAuthored on Dec 3 2024, 10:51 PM
themackabuPushed on Tue, Mar 25, 8:07 PM
Parents
rPc589529155d6: Fix parsing of incoming mail with UTF-8 encoded headers
Branches
Unknown
Tags
Unknown

Event Timeline