Skip to content

Commit

Permalink
Fixed issue #19140: Problem with viewing LimeSurvey notifications (#3537
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mfavetti committed Oct 23, 2023
1 parent 2aa091a commit a93f907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/NotificationController.php
Expand Up @@ -116,7 +116,7 @@ protected function checkPermission($notId): Notification
if (!$oNotification) {
throw new CHttpException(404, sprintf(gT("Notification %s not found"), $notId));
}
if ($oNotification->entity_id !== (string) App()->user->id) {
if ((int) $oNotification->entity_id !== (int) App()->user->id) {
throw new CHttpException(403, gT("You do not have permission to access this page."));
}

Expand Down

0 comments on commit a93f907

Please sign in to comment.