Show notifications menu only to users with permission for the feature. (#18184)

This commit is contained in:
Andy Butland
2025-02-03 13:24:58 +01:00
committed by GitHub
parent 9f357173c3
commit e7411244fd

View File

@@ -317,13 +317,7 @@ public class ContentTreeController : ContentTreeControllerBase, ISearchableTreeW
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)