mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 19:32:40 +01:00
20 lines
399 B
PHP
20 lines
399 B
PHP
|
<?php
|
||
|
|
||
|
abstract class ManiphestTaskRelationship
|
||
|
extends PhabricatorObjectRelationship {
|
||
|
|
||
|
public function isEnabledForObject($object) {
|
||
|
$viewer = $this->getViewer();
|
||
|
|
||
|
$has_app = PhabricatorApplication::isClassInstalledForViewer(
|
||
|
'PhabricatorManiphestApplication',
|
||
|
$viewer);
|
||
|
if (!$has_app) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
return ($object instanceof ManiphestTask);
|
||
|
}
|
||
|
|
||
|
}
|