mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 13:22:42 +01:00
Policy - fix error message
Summary: We were saying "Object Restricted Object"; instead say "Restricted Object". Fixes T6104. Test Plan: made a restricted paste and a restricted task and saw good error messages. {F215281} {F215282} Reviewers: epriestley, chad Reviewed By: chad Subscribers: Korvin, epriestley Maniphest Tasks: T6104 Differential Revision: https://secure.phabricator.com/D10668
This commit is contained in:
parent
ad991b0197
commit
45bb77531c
1 changed files with 2 additions and 7 deletions
|
@ -343,20 +343,15 @@ final class PhabricatorPolicyFilter {
|
|||
->withPHIDs(array($phid))
|
||||
->executeOne();
|
||||
|
||||
$object_name = pht(
|
||||
'%s %s',
|
||||
$handle->getTypeName(),
|
||||
$handle->getObjectName());
|
||||
|
||||
$is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business');
|
||||
if ($is_serious) {
|
||||
$title = pht(
|
||||
'Access Denied: %s',
|
||||
$object_name);
|
||||
$handle->getObjectName());
|
||||
} else {
|
||||
$title = pht(
|
||||
'You Shall Not Pass: %s',
|
||||
$object_name);
|
||||
$handle->getObjectName());
|
||||
}
|
||||
|
||||
$full_message = pht(
|
||||
|
|
Loading…
Reference in a new issue