GroupRights.php
authorAlan Knowles <alan@roojs.com>
Fri, 14 Sep 2012 05:56:38 +0000 (13:56 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 14 Sep 2012 05:56:38 +0000 (13:56 +0800)
GroupRights.php

index 4180ef2..43034a9 100644 (file)
@@ -14,6 +14,11 @@ class Pman_Admin_GroupRights extends Pman
         if (!$au) {
             $this->jerr("Not authenticated", array('authFailure' => true));
         }
+        
+        if ($au->company_id_comptype !='OWNER') {
+            $this->jerr("Error", "only company owners can manage groups");
+        }
+        
         $this->authUser = $au;
         return true;
     }