Skip to content

Commit

Permalink
Changed user permission check to handle change made to REDCap
Browse files Browse the repository at this point in the history
  • Loading branch information
mullen2 committed Sep 27, 2021
1 parent ae62bc5 commit 9d4fa4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Authorization.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public static function hasRedCapUserRightsForEtl($module)

# Users need to have project design permission and "full data set" data export permission
# and not belong to a data access group (DAG)
if ($rights['design'] && $rights['data_export_tool'] == 1 && !isset($rights['group_id'])) {
if ($rights['design'] && $rights['data_export_tool'] == 1 && empty($rights['group_id'])) {
$hasPermission = true;
}
}
Expand Down

0 comments on commit 9d4fa4f

Please sign in to comment.