From 9682ab52d0d407af0964645d534ef25fd0a5e10e Mon Sep 17 00:00:00 2001 From: Rahman Ramsi Date: Mon, 2 Sep 2024 16:38:35 +0800 Subject: [PATCH] fix cannot be disable/enable --- OjtPlugin.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()