From 12a5670a1566accb3d5bed31e8e96621ab3d8cee Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 14 Sep 2012 14:10:51 +0800 Subject: [PATCH] GroupRights.php --- GroupRights.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GroupRights.php b/GroupRights.php index 15046b8..e0536c7 100644 --- a/GroupRights.php +++ b/GroupRights.php @@ -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"); } -- 2.39.2