1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 13:22:42 +01:00

Allow the omnipotent viewer to see objects in uninstalled applications

Particularly, in the cluster, it needs to be able to see Almanac services.
This permission may be conflated with the logged-out viewer, since neither
have PHIDs.

Auditors: btrahan
This commit is contained in:
epriestley 2015-06-27 04:26:04 -07:00
parent b7ccc77728
commit b9abb277ca

View file

@ -449,6 +449,10 @@ abstract class PhabricatorApplication
$class, $class,
PhabricatorUser $viewer) { PhabricatorUser $viewer) {
if ($viewer->isOmnipotent()) {
return true;
}
$cache = PhabricatorCaches::getRequestCache(); $cache = PhabricatorCaches::getRequestCache();
$viewer_phid = $viewer->getPHID(); $viewer_phid = $viewer->getPHID();
$key = 'app.'.$class.'.installed.'.$viewer_phid; $key = 'app.'.$class.'.installed.'.$viewer_phid;