Bug fix - notifications audience

* Performers had their notifications publicaly published.
* refacto admin group name
This commit is contained in:
Paul Schneider 2026-10-23 13:32:42 +01:00
commit d476c08046
Signed by: notazof
GPG key ID: AD4B9B545FBD7D12
36 changed files with 421 additions and 74 deletions

View file

@ -77,7 +77,7 @@ public class HairMultiCutQueryApiController : Controller
return NotFound();
}
if (query.ClientId != uid && query.PerformerId != uid && !User.IsInRole(Constants.AdminGroupName))
if (query.ClientId != uid && query.PerformerId != uid && !User.IsInRole(Constants.AdminName))
{
return Forbid();
}
@ -152,7 +152,7 @@ public class HairMultiCutQueryApiController : Controller
}
var uid = User.GetUserId();
if (existing.ClientId != uid && !User.IsInRole(Constants.AdminGroupName))
if (existing.ClientId != uid && !User.IsInRole(Constants.AdminName))
{
return Forbid();
}
@ -200,7 +200,7 @@ public class HairMultiCutQueryApiController : Controller
return NotFound();
}
if (query.ClientId != uid && !User.IsInRole(Constants.AdminGroupName))
if (query.ClientId != uid && !User.IsInRole(Constants.AdminName))
{
return Forbid();
}
@ -285,4 +285,4 @@ public class HairMultiCutQueryApiController : Controller
return query;
}
}
}