File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
src/applications/policy/filter Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,25 @@ public function getExplanation($capability) {
153
153
return pht ('Other: %s ' , $ this ->getName ());
154
154
}
155
155
break ;
156
+ case PhabricatorPolicyCapability::CAN_EDIT :
157
+ switch ($ this ->getPHID ()) {
158
+ case PhabricatorPolicies::POLICY_USER :
159
+ return pht ('Editable by all logged in users. ' );
160
+ case PhabricatorPolicies::POLICY_ADMIN :
161
+ return pht ('Editable by all administrators. ' );
162
+ case PhabricatorPolicies::POLICY_NOONE :
163
+ return pht ('Not editable by default. ' );
164
+ }
165
+
166
+ switch ($ this ->getType ()) {
167
+ case PhabricatorPolicyType::TYPE_PROJECT :
168
+ return pht (
169
+ 'Editable by members of the project "%s". ' ,
170
+ $ this ->getName ());
171
+ case PhabricatorPolicyType::TYPE_MASKED :
172
+ return pht ('Other: %s ' , $ this ->getName ());
173
+ }
174
+ break ;
156
175
}
157
176
158
177
You can’t perform that action at this time.
0 commit comments