Skip to content

Commit

Permalink
Fixed issue #13062: Survey permissions - display issues - users & use…
Browse files Browse the repository at this point in the history
…r groups
  • Loading branch information
lacrioque committed Dec 21, 2017
1 parent acd6706 commit 7462f67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions application/controllers/admin/surveypermission.php
Expand Up @@ -394,7 +394,7 @@ function adduser($surveyid)
$this->getController()->error('Access denied');
}

$addsummary .= "</div></div></div>\n";
$addsummary .= "</div></div>\n";

$aViewUrls['output'] = $addsummary;
}
Expand Down Expand Up @@ -510,7 +510,7 @@ function set($surveyid)
} else {
$usersummary .= "<input type='hidden' name='ugid' value='{$postusergroupid}' />";
}
$usersummary .= "</form></div></div>\n";
$usersummary .= "</form>\n";

$aViewUrls['output'] = $usersummary;
} else {
Expand Down Expand Up @@ -574,7 +574,7 @@ function delete($surveyid)
} else {
$this->getController()->error('Access denied');
}
$addsummary .= "</div></div></div>\n";
$addsummary .= "</div></div>\n";

$aViewUrls['output'] = $addsummary;
}
Expand Down
3 changes: 2 additions & 1 deletion application/models/User.php
Expand Up @@ -410,7 +410,8 @@ class='btn btn-default btn-xs'>
data-message='".gT("Do you want to delete this user?")."'
class='btn btn-default btn-xs '>
<span class='fa fa-trash text-danger'></span>
</button>";
</button>
</span>";
}
if (Permission::isForcedSuperAdmin(Yii::app()->session['loginID'])
&& $this->parent_id != Yii::app()->session['loginID']
Expand Down

0 comments on commit 7462f67

Please sign in to comment.