backend: Extend issue and proposal access to admins
This commit is contained in:
1 parent
34f2d57bd3
commit
ea3de2e444
16 files changed
+184
-127
No files matched your search
@@ -15,7 +15,8 @@ public sealed class NotificationWriter(IAppDbContext db, TimeProvider clock)
|
||||
{
|
||||
var reporterId = issue.ReporterId;
|
||||
var eligibleUsers = db.Users.Where(u =>
|
||||
u.Id == reporterId || u.Role == UserRole.FacilityManager || u.Role == UserRole.Management);
|
||||
u.Id == reporterId || u.Role == UserRole.FacilityManager || u.Role == UserRole.Management ||
|
||||
u.Role == UserRole.Admin);
|
||||
return QueueAsync(eligibleUsers, actorId, recipientIds,
|
||||
id => new Notification(issue, id, type, title, issue.Title), ct);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user