Skip to content

Commit

Permalink
Fixed issue #10198: Unable to import/export tokens even if all global…
Browse files Browse the repository at this point in the history
… permissions except superadmin are given
  • Loading branch information
c-schmitz committed Aug 25, 2016
1 parent 70c169d commit 7912ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Permission.php
Expand Up @@ -646,7 +646,7 @@ public function hasSurveyPermission($iSurveyID, $sPermission, $sCRUD='read', $iU
return false;
}
// If the user has the permission to update all other surveys he may import/export as well
if ($this->hasGlobalPermission('surveys', 'update', $iUserID) && $sPermission='token' && ($sCRUD=='import' || $sCRUD=='export'))
if ($this->hasGlobalPermission('surveys', 'update', $iUserID) && $sPermission=='token' && ($sCRUD=='import' || $sCRUD=='export'))
{
$sCRUD='update';
}
Expand Down

0 comments on commit 7912ca4

Please sign in to comment.