Page MenuHomePhabricator

D11229.id26960.diff
No OneTemporary

D11229.id26960.diff

diff --git a/src/applications/project/query/PhabricatorProjectSearchEngine.php b/src/applications/project/query/PhabricatorProjectSearchEngine.php
--- a/src/applications/project/query/PhabricatorProjectSearchEngine.php
+++ b/src/applications/project/query/PhabricatorProjectSearchEngine.php
@@ -223,10 +223,21 @@
),
pht('Workboard'));
- $members_url = phutil_tag(
+ $members_class = null;
+ $members_sigil = null;
+ if (!PhabricatorPolicyFilter::hasCapability(
+ $viewer,
+ $project,
+ PhabricatorPolicyCapability::CAN_EDIT)) {
+ $members_class = 'disabled';
+ $members_sigil = 'workflow';
+ }
+ $members_url = javelin_tag(
'a',
array(
'href' => $members_uri,
+ 'class' => $members_class,
+ 'sigil' => $members_sigil,
),
pht('Members'));

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 11, 11:48 AM (1 d, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6765067
Default Alt Text
D11229.id26960.diff (903 B)

Event Timeline