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.
abp/modules/identity/test/Volo.Abp.Identity.Domain.Tests/Volo/Abp/Identity/IdentityTestPermissionDefin...

18 lines
611 B

using Volo.Abp.Authorization.Permissions;
namespace Volo.Abp.Identity
{
public class IdentityTestPermissionDefinitionProvider : PermissionDefinitionProvider
{
public override void Define(IPermissionDefinitionContext context)
{
var testGroup = context.AddGroup(TestPermissionNames.Groups.TestGroup);
testGroup.AddPermission(TestPermissionNames.MyPermission1);
var myPermission2 = testGroup.AddPermission(TestPermissionNames.MyPermission2);
myPermission2.AddChild(TestPermissionNames.MyPermission2_ChildPermission1);
}
}
}