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

index 8a0126c..61d8dbe 100644 (file)
@@ -34,7 +34,8 @@ class Pman_Admin_GroupRights extends Pman
         if (!isset($_GET['group_id']) || (int)$_GET['group_id'] < 0) {
             $this->jerr("NO GROUP");
         }
-        if (!$this->hasPerm( 'Core.Groups','S')) { // listing groups..
+        
+        if (!$this->checkPerm('Core.Groups','E')) { // editing groups..
             $this->jerr("PERMISSION DENIED");
         }
         
@@ -102,10 +103,6 @@ class Pman_Admin_GroupRights extends Pman
             $this->jerr("PERMISSION DENIED");
         }
         
-        
-            
-        
-        
         // add or update..
         if (!empty($_POST['dataUpdate'])) {
             foreach($_POST['dataUpdate'] as $id => $ac) {