Commit 7b313a49 authored by Chenu Denis's avatar Chenu Denis
Browse files

[fix] return true if not ma,nager too

parent e04226bd
......@@ -568,11 +568,13 @@ class Utilities
if (!empty($oResponse->submitdate)) {
$allowSubmitted = self::getReloadAnyResponseSetting($surveyid, 'allowUserOnSubmitted');
if (!$allowSubmitted && !$isManager) {
return false;
}
if (!self::getReloadAnyResponseSetting($surveyid, 'allowTokenGroupManagerOnSubmitted')) {
return false;
if(!$allowSubmitted) {
if (!$isManager) {
return false;
}
if (!self::getReloadAnyResponseSetting($surveyid, 'allowTokenGroupManagerOnSubmitted')) {
return false;
}
}
}
if ($token == $oResponse->token) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment