@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+2 -7
+2 -7
src/applications/policy/filter/PhabricatorPolicyFilter.php
··· 343 343 ->withPHIDs(array($phid)) 344 344 ->executeOne(); 345 345 346 - $object_name = pht( 347 - '%s %s', 348 - $handle->getTypeName(), 349 - $handle->getObjectName()); 350 - 351 346 $is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business'); 352 347 if ($is_serious) { 353 348 $title = pht( 354 349 'Access Denied: %s', 355 - $object_name); 350 + $handle->getObjectName()); 356 351 } else { 357 352 $title = pht( 358 353 'You Shall Not Pass: %s', 359 - $object_name); 354 + $handle->getObjectName()); 360 355 } 361 356 362 357 $full_message = pht(