Skip to content

Commit

Permalink
Fix ticket cancelation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristian Lyngstol committed Sep 10, 2007
1 parent f2b4d14 commit 9c4e343
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions public_html/subs/ticket.php
Expand Up @@ -337,16 +337,18 @@ public function Ticket_System(Event $event)
$this->admin = true;
if (me_perm($this->perm, "r"))
$this->crew = true;
$this->register_actioncb();
if ($me->uid <= 1)
{
$this->loggedin = false;
$this->ticket_state = new Ticket_state ($event->eid);
return;
}
$this->loggedin = true;
$this->self_ticket = new Ticket($me->uid, $event->eid);
$this->ticket_state = $this->self_ticket->getTicketState();
else
{
$this->self_ticket = new Ticket($me->uid, $event->eid);
$this->ticket_state = $this->self_ticket->getTicketState();
$this->loggedin = true;
}
$this->register_actioncb();
}

/* Register all the relevant action cb's
Expand Down

0 comments on commit 9c4e343

Please sign in to comment.