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) {
36 // we have 2 bits of data available at present:
39 $d= DB_DataObject::factory('core_event_audit');
40 if (is_a($d,'DB_DataObject')) {
41 echo "<H2>Changed Data:</H2>";
43 foreach($d->fetchAll() as $d) {
44 echo "{$d->name} SET TO: " . htmlspecialchars($d->newvalue) . "<br/>\n";