fix #5072 - administrators should be allowed to send system notifications
This commit is contained in:
parent
f30f1e5c1f
commit
4f4258d532
|
@ -223,7 +223,7 @@ namespace Oqtane.Controllers
|
||||||
|
|
||||||
private bool IsAuthorized(int? userid)
|
private bool IsAuthorized(int? userid)
|
||||||
{
|
{
|
||||||
bool authorized = false;
|
bool authorized = User.IsInRole(RoleNames.Admin);
|
||||||
if (userid != null)
|
if (userid != null)
|
||||||
{
|
{
|
||||||
authorized = (_userPermissions.GetUser(User).UserId == userid);
|
authorized = (_userPermissions.GetUser(User).UserId == userid);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user