mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 21:32:43 +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))
|
->withPHIDs(array($phid))
|
||||||
->executeOne();
|
->executeOne();
|
||||||
|
|
||||||
$object_name = pht(
|
|
||||||
'%s %s',
|
|
||||||
$handle->getTypeName(),
|
|
||||||
$handle->getObjectName());
|
|
||||||
|
|
||||||
$is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business');
|
$is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business');
|
||||||
if ($is_serious) {
|
if ($is_serious) {
|
||||||
$title = pht(
|
$title = pht(
|
||||||
'Access Denied: %s',
|
'Access Denied: %s',
|
||||||
$object_name);
|
$handle->getObjectName());
|
||||||
} else {
|
} else {
|
||||||
$title = pht(
|
$title = pht(
|
||||||
'You Shall Not Pass: %s',
|
'You Shall Not Pass: %s',
|
||||||
$object_name);
|
$handle->getObjectName());
|
||||||
}
|
}
|
||||||
|
|
||||||
$full_message = pht(
|
$full_message = pht(
|
||||||
|
|
Loading…
Reference in a new issue