Skip to content

Commit

Permalink
Remove notification config
Browse files Browse the repository at this point in the history
  • Loading branch information
SeriaWei committed Mar 15, 2023
1 parent 8780194 commit be0d02d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 52 deletions.
18 changes: 0 additions & 18 deletions src/ZKEACMS.Message/Controllers/MessageNotificationController.cs

This file was deleted.

10 changes: 0 additions & 10 deletions src/ZKEACMS.Message/MessagePlug.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ public override IEnumerable<AdminMenu> AdminMenu()
Order = 2,
Icon = "glyphicon-comment",
PermissionKey = PermissionKeys.ViewComments
},
new AdminMenu
{
Title = "Notify Email",
Url = "~/admin/messagenotification/config",
Order = 3,
Icon = "glyphicon-flag",
PermissionKey = PermissionKeys.ManageMessageNotification
}
}
};
Expand All @@ -73,7 +65,6 @@ public override IEnumerable<PermissionDescriptor> RegistPermission()
yield return new PermissionDescriptor(PermissionKeys.ManageMessage, "Message And Comments", "Manage Message", "");
yield return new PermissionDescriptor(PermissionKeys.ViewComments, "Message And Comments", "View Comments", "");
yield return new PermissionDescriptor(PermissionKeys.ManageComments, "Message And Comments", "Manage Comments", "");
yield return new PermissionDescriptor(PermissionKeys.ManageMessageNotification, "Message And Comments", "Manage Notify Email", "");
}

public override IEnumerable<WidgetTemplateEntity> WidgetServiceTypes()
Expand Down Expand Up @@ -117,7 +108,6 @@ public override void ConfigureServices(IServiceCollection serviceCollection)
serviceCollection.ConfigureMetaData<MessageBoxWidget, MessageBoxWidgetMetaData>();
serviceCollection.ConfigureMetaData<MessageEntity, MessageMetaData>();
serviceCollection.ConfigureMetaData<MessageWidget, MessageWidgetMetaData>();
serviceCollection.ConfigureMetaData<MessageNotificationConfig, MessageNotificationConfigMetaData>();

serviceCollection.Configure<MessageBoxWidget>(option =>
{
Expand Down
23 changes: 0 additions & 23 deletions src/ZKEACMS.Message/Models/MessageNotificationConfig.cs

This file was deleted.

1 change: 0 additions & 1 deletion src/ZKEACMS.Message/PermissionKeys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ public class PermissionKeys
public const string ManageMessage = "Message_Manage";
public const string ViewComments = "Comments_View";
public const string ManageComments = "Comments_Manage";
public const string ManageMessageNotification = "MessageNotification_Manage";
}
}

0 comments on commit be0d02d

Please sign in to comment.