Skip to content

Commit

Permalink
Show notifications menu only to users with permission for the feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyButland committed Jan 31, 2025
1 parent 343867f commit e3dc59e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Umbraco.Web.BackOffice/Trees/ContentTreeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,7 @@ protected MenuItemCollection GetAllNodeMenuItems(IUmbracoEntity item)

if (_emailSender.CanSendRequiredEmail())
{
menu.Items.Add(new MenuItem("notify", LocalizedTextService)
{
Icon = "icon-megaphone",
SeparatorBefore = true,
OpensDialog = true,
UseLegacyIcon = false
});
AddActionNode<ActionNotify>(item, menu, hasSeparator: true, opensDialog: true, useLegacyIcon: false);
}

if ((item is DocumentEntitySlim documentEntity && documentEntity.IsContainer) == false)
Expand Down

0 comments on commit e3dc59e

Please sign in to comment.