Merge pull request #5081 from sbwalker/dev
fix #5072 - administrators should be allowed to send system notifications
This commit is contained in:
commit
f53e7cc3f6
|
@ -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