Skip to content

Commit

Permalink
fix cannot be disable/enable
Browse files Browse the repository at this point in the history
  • Loading branch information
rahmanramsi authored Sep 2, 2024
1 parent 328a1c7 commit 9682ab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OjtPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9682ab5

Please sign in to comment.