mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 09:12:41 +01:00
Disable the "Edit Project" button for users without edit permissions
Summary: Self-explanatory. Test Plan: Viewed the project page as a user without edit permissions and saw the link greyed out. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D13255
This commit is contained in:
parent
52f8756c3c
commit
92e868c2fe
1 changed files with 2 additions and 1 deletions
|
@ -91,7 +91,8 @@ final class PhabricatorProjectProfileController
|
||||||
id(new PhabricatorActionView())
|
id(new PhabricatorActionView())
|
||||||
->setName(pht('Edit Details'))
|
->setName(pht('Edit Details'))
|
||||||
->setIcon('fa-pencil')
|
->setIcon('fa-pencil')
|
||||||
->setHref($this->getApplicationURI("details/{$id}/")));
|
->setHref($this->getApplicationURI("details/{$id}/"))
|
||||||
|
->setDisabled(!$can_edit));
|
||||||
|
|
||||||
$view->addAction(
|
$view->addAction(
|
||||||
id(new PhabricatorActionView())
|
id(new PhabricatorActionView())
|
||||||
|
|
Loading…
Reference in a new issue