Merge pull request #5081 from sbwalker/dev

fix #5072 - administrators should be allowed to send system notifications
This commit is contained in:
Shaun Walker 2025-02-09 12:34:38 -05:00 committed by GitHub
commit f53e7cc3f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);