You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
859 B
22 lines
859 B
using LINGYUN.Abp.MessageService.Localization;
|
|
using Volo.Abp.Authorization.Permissions;
|
|
using Volo.Abp.Localization;
|
|
|
|
namespace LINGYUN.Abp.MessageService.Permissions
|
|
{
|
|
public class AbpMessageServicePermissionDefinitionProvider : PermissionDefinitionProvider
|
|
{
|
|
public override void Define(IPermissionDefinitionContext context)
|
|
{
|
|
var group = context.GetGroup(MessageServicePermissions.GroupName);
|
|
|
|
var hangfirePermission = group.AddPermission(AbpMessageServicePermissions.Hangfire.Default, L("Permission:Hangfire"));
|
|
hangfirePermission.AddChild(AbpMessageServicePermissions.Hangfire.ManageQueue, L("Permission:ManageQueue"));
|
|
}
|
|
|
|
private static LocalizableString L(string name)
|
|
{
|
|
return LocalizableString.Create<MessageServiceResource>(name);
|
|
}
|
|
}
|
|
}
|
|
|