mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-01 23:19:15 +01:00
20 lines
416 B
PHP
20 lines
416 B
PHP
|
<?php
|
||
|
|
||
|
abstract class DifferentialRevisionRelationship
|
||
|
extends PhabricatorObjectRelationship {
|
||
|
|
||
|
public function isEnabledForObject($object) {
|
||
|
$viewer = $this->getViewer();
|
||
|
|
||
|
$has_app = PhabricatorApplication::isClassInstalledForViewer(
|
||
|
'PhabricatorDifferentialApplication',
|
||
|
$viewer);
|
||
|
if (!$has_app) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
return ($object instanceof DifferentialRevision);
|
||
|
}
|
||
|
|
||
|
}
|