From: edward Date: Mon, 15 Jan 2018 03:14:53 +0000 (+0800) Subject: GroupRights.php X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=bf167b23c30573595c4a3a9986ea1fae7cac78b7 GroupRights.php --- diff --git a/GroupRights.php b/GroupRights.php index b62f5d7..d92a547 100644 --- a/GroupRights.php +++ b/GroupRights.php @@ -97,7 +97,8 @@ class Pman_Admin_GroupRights extends Pman if (!isset($_POST['group_id']) || (int)$_POST['group_id'] < 0) { $this->jerr("NO GROUP"); } - if (!$this->hasPerm( 'Core.Groups','E')) { // editing groups.. + + if (!$this->checkPerm('Core.Groups','E')) { // editing groups.. $this->jerr("PERMISSION DENIED"); } @@ -141,9 +142,5 @@ class Pman_Admin_GroupRights extends Pman { return $au->hasPerm("Core.Groups", $lvl); } - - - - } \ No newline at end of file