1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 04:20:55 +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:
Bob Trahan 2014-10-08 19:46:56 -07:00
parent ad991b0197
commit 45bb77531c

View file

@ -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(