diff --git a/src/Umbraco.Web/Compose/NotificationsComponent.cs b/src/Umbraco.Web/Compose/NotificationsComponent.cs index 43f6621e51..db602b3db9 100644 --- a/src/Umbraco.Web/Compose/NotificationsComponent.cs +++ b/src/Umbraco.Web/Compose/NotificationsComponent.cs @@ -59,7 +59,9 @@ namespace Umbraco.Web.Compose ContentService.RolledBack += (sender, args) => _notifier.Notify(_actions.GetAction(), args.Entity); //Send notifications for the public access changed action - PublicAccessService.Saved += (sender, args) => PublicAccessServiceSaved(_notifier, sender, args, _contentService, _actions); + PublicAccessService.Saved += (sender, args) => PublicAccessServiceSaved(_notifier, sender, args, _contentService, _actions); + + UserService.UserGroupPermissionsAssigned += (sender, args) => UserServiceUserGroupPermissionsAssigned(_notifier, sender, args, _contentService, _actions); } public void Terminate() @@ -103,6 +105,16 @@ namespace Umbraco.Web.Compose notifier.Notify(actions.GetAction(), newEntities.ToArray()); notifier.Notify(actions.GetAction(), updatedEntities.ToArray()); } + + private void UserServiceUserGroupPermissionsAssigned(Notifier notifier, IUserService sender, Core.Events.SaveEventArgs args, IContentService contentService, ActionCollection actions) + { + var entities = contentService.GetByIds(args.SavedEntities.Select(e => e.EntityId)).ToArray(); + if(entities.Any() == false) + { + return; + } + notifier.Notify(actions.GetAction(), entities); + } private void ContentServiceMoved(Notifier notifier, IContentService sender, Core.Events.MoveEventArgs args, ActionCollection actions) {