mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-01 03:02:43 +01:00
dc9283b85d
Summary: Ref T4788. This moves everything except "merge" to the new code. Test Plan: - Edited relationships in Differential, Diffusion, and Pholio. - Uninstalled Pholio, made sure "Edit Mocks..." actions vanished. Reviewers: chad Reviewed By: chad Maniphest Tasks: T4788 Differential Revision: https://secure.phabricator.com/D16193
19 lines
416 B
PHP
19 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);
|
|
}
|
|
|
|
}
|