fix #5072 - administrators should be allowed to send system notifications

This commit is contained in:
sbwalker 2025-02-09 12:34:17 -05:00
parent f30f1e5c1f
commit 4f4258d532

View File

@ -223,7 +223,7 @@ namespace Oqtane.Controllers
private bool IsAuthorized(int? userid)
{
bool authorized = false;
bool authorized = User.IsInRole(RoleNames.Admin);
if (userid != null)
{
authorized = (_userPermissions.GetUser(User).UserId == userid);