Skip to content

Commit

Permalink
add survey permission to users from a usergroup
Browse files Browse the repository at this point in the history
  • Loading branch information
Alain-Bearez committed Sep 26, 2013
1 parent 2fc9e69 commit ae1affc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/surveypermission.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function addusergroup($surveyid)
foreach ($result2 as $row2 )
{
$uid_arr[] = $row2['uid'];
$isrresult = Permission::model()->insertSomeRecords(array('sid' => $surveyid,'uid' => $row2['uid'], 'permission' => 'survey', 'read_p' => 1));
$isrresult = Permission::model()->insertSomeRecords(array('entity_id' => $surveyid, 'entity'=>'survey', 'uid' => $row2['uid'], 'permission' => 'survey', 'read_p' => 1));
if (!$isrresult) break;
}

Expand Down

0 comments on commit ae1affc

Please sign in to comment.