验证中...
Languages: C#
Categories: Web开发技术
Latest update 2019-05-16 15:01
gistfile1.txt
Raw Copy
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]
public class AbpMvcAuthorizeAttribute : AuthorizeAttribute, IAbpAuthorizeAttribute
{
/// <inheritdoc/>
public string[] Permissions { get; set; }
/// <inheritdoc/>
public bool RequireAllPermissions { get; set; }
/// <summary>
/// Creates a new instance of <see cref="AbpMvcAuthorizeAttribute"/> class.
/// </summary>
/// <param name="permissions">A list of permissions to authorize</param>
public AbpMvcAuthorizeAttribute(params string[] permissions)
{
Permissions = permissions;
}
}

Comment list( 0 )

You need to Sign in for post a comment

Help Search