Skip to content

Commit

Permalink
Fixed issue #11288: Cannot edit/update oarticipants unless having sup…
Browse files Browse the repository at this point in the history
…eradministrator permission
  • Loading branch information
c-schmitz committed May 27, 2016
1 parent 18fa446 commit abefd77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Participant.php
Expand Up @@ -920,7 +920,7 @@ function is_owner($participant_id)
->db
->createCommand()
->select('count(*)')
->where('participant_id = :participant_id AND ( share_uid = :userid oOR share_uid = 0)')
->where('participant_id = :participant_id AND ( share_uid = :userid OR share_uid = 0)')
->from('{{participant_shares}}')
->bindParam(":participant_id", $participant_id, PDO::PARAM_STR)
->bindParam(":userid", $userid, PDO::PARAM_INT)
Expand Down

0 comments on commit abefd77

Please sign in to comment.