GroupRights.php
[Pman.Admin] / GroupRights.php
index 851655f..d92a547 100644 (file)
@@ -28,7 +28,7 @@ class Pman_Admin_GroupRights extends Pman
     
     // FOR PERMS - SEE THE DATAOBJECT!
     
-    function get()
+    function get($v, $opts = Array())
     {
         // must recieve a group..
         if (!isset($_GET['group_id']) || (int)$_GET['group_id'] < 0) {
@@ -92,12 +92,13 @@ class Pman_Admin_GroupRights extends Pman
     
     
     // post.. 
-    function post()
+    function post($v)
     {
         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");
         }
         
@@ -136,9 +137,10 @@ class Pman_Admin_GroupRights extends Pman
         
         
     }
-     
-    
-    
     
+    function checkPerm($lvl, $au)
+    {
+        return $au->hasPerm("Core.Groups", $lvl);
+    }
     
 }
\ No newline at end of file