GroupRights.php
authorAlan Knowles <alan@roojs.com>
Fri, 14 Sep 2012 06:10:51 +0000 (14:10 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 14 Sep 2012 06:10:51 +0000 (14:10 +0800)
GroupRights.php

index 15046b8..e0536c7 100644 (file)
@@ -15,7 +15,7 @@ class Pman_Admin_GroupRights extends Pman
             $this->jerr("Not authenticated", array('authFailure' => true));
         }
         
-        if ($au->company_id_comptype !='OWNER') {
+        if ($au->company()->comptype !='OWNER') {
             $this->jerr("Error", "only company owners can manage groups");
         }