GroupRights.php
authoredward <edward@roojs.com>
Mon, 15 Jan 2018 03:18:09 +0000 (11:18 +0800)
committeredward <edward@roojs.com>
Mon, 15 Jan 2018 03:18:09 +0000 (11:18 +0800)
GroupRights.php

index 8a291a1..a0235e2 100644 (file)
@@ -99,7 +99,7 @@ class Pman_Admin_GroupRights extends Pman
             $this->jerr("NO GROUP");
         }
         
-        if (!$this->checkPerm('Core.Groups','E')) { // editing groups..
+        if (!$this->checkPerm('E')) { // editing groups..
             $this->jerr("PERMISSION DENIED");
         }
         
@@ -135,9 +135,9 @@ class Pman_Admin_GroupRights extends Pman
         
     }
     
-    function checkPerm($perms, $lvl)
+    function checkPerm($lvl)
     {
-        return $this->hasPerm($perms, $lvl);
+        return $this->hasPerm('Core.Groups', $lvl);
     }
     
 }
\ No newline at end of file