mirror of https://github.com/abpframework/abp.git
committed by
GitHub
9 changed files with 135 additions and 16 deletions
@ -0,0 +1,15 @@ |
|||
using Volo.Abp.Authorization.Permissions; |
|||
using Volo.Abp.Features; |
|||
|
|||
namespace Volo.Abp.Authorization.TestServices; |
|||
|
|||
public class FeatureGatedTestPermissionDefinitionProvider : PermissionDefinitionProvider |
|||
{ |
|||
public override void Define(IPermissionDefinitionContext context) |
|||
{ |
|||
var group = context.AddGroup("FeatureGatedTestGroup"); |
|||
|
|||
group.AddPermission("FeatureGatedPermission") |
|||
.RequireFeatures("FeatureGatedTestFeature"); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue