4 require_once 'Pman.php';
6 class Pman_Admin_EventView extends Pman
12 $au = $this->getAuthUser();
13 if (!$au || $au->company()->comptype != 'OWNER') {
23 $ev = DB_DataObject::Factory('Events');
26 // verify if not admin, then they should
27 $g = DB_DataObject::Factory('Group_Members');
28 $grps = $g->listGroupMembership($this->authUser);
30 $isAdmin = $g->inAdmin;
32 if (!$isAdmin && $ev->person_id != $this->authUser->id) {