diff --git a/OjtPlugin.inc.php b/OjtPlugin.inc.php index 35774dc..fa31ef3 100644 --- a/OjtPlugin.inc.php +++ b/OjtPlugin.inc.php @@ -59,7 +59,7 @@ function getCanEnable() { * @copydoc Plugin::getCanDisable() */ function getCanDisable() { - return $this->getRequest()->getUser()->hasRole([ROLE_ID_SITE_ADMIN], $this->getCurrentContextId()); + return $this->getRequest()->getUser()->hasRole([ROLE_ID_SITE_ADMIN], CONTEXT_SITE); } public function apiUrl()