GroupRights.php
authorAlan Knowles <alan@roojs.com>
Fri, 14 Sep 2012 07:04:22 +0000 (15:04 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 14 Sep 2012 07:04:22 +0000 (15:04 +0800)
GroupRights.php

index ee57075..a3de4aa 100644 (file)
@@ -91,7 +91,7 @@ class Pman_Admin_GroupRights extends Pman
     // post.. 
     function post()
     {
-        if (!isset($_POST['group_id']) || (int)$_POST['group_id'] < 1) {
+        if (!isset($_POST['group_id']) || (int)$_POST['group_id'] < 0) {
             $this->jerr("NO GROUP");
         }
         if (!$this->hasPerm( 'Core.Groups','E')) { // editing groups..