Skip to content

Commit

Permalink
Fixed issue #10196: Superadmins should be able to edit participants w…
Browse files Browse the repository at this point in the history
…ithout sharing
  • Loading branch information
olleharstedt committed Feb 5, 2016
1 parent aa7565c commit 433252f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions application/models/Participant.php
Expand Up @@ -892,6 +892,12 @@ function getParticipantsSearchMultipleCondition($condition)
*/
function is_owner($participant_id)
{
// Superadmins can edit all participants
if (Permission::model()->hasGlobalPermission('superadmin'))
{
return true;
}

$userid = Yii::app()->session['loginID'];

$is_owner = Yii::app()
Expand Down

1 comment on commit 433252f

@Shnoulle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All this part must be moved to Permission model ? No ?

Please sign in to comment.