Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

Commit

Permalink
in DeleteComment(), the username from the the XML must be a string an…
Browse files Browse the repository at this point in the history
…d the event id is an integer
  • Loading branch information
akrabat committed Jan 5, 2013
1 parent c2878c0 commit d464cbe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function checkSecurity($xml) {
$eid=$xml->action->eid;
// Now check to see if they're a site admin or an event admin
$is_site = $this->CI->user_model->isSiteAdmin((string)$xml->auth->user);
$is_evt = $this->CI->user_model->isAdminEvent((string)$eid, $xml->auth->user);
$is_evt = $this->CI->user_model->isAdminEvent((int)$eid, (string)$xml->auth->user);
$is_js = $this->checkPublicKey();
return ($is_site || $is_evt || $is_js) ? true : false;

Expand Down

0 comments on commit d464cbe

Please sign in to comment.