IAbpAuthorizeAttribute.cs 635 B

1234567891011121314151617181920
  1. namespace Abp.Authorization
  2. {
  3. /// <summary>
  4. /// Defines standard interface for authorization attributes.
  5. /// </summary>
  6. public interface IAbpAuthorizeAttribute
  7. {
  8. /// <summary>
  9. /// A list of permissions to authorize.
  10. /// </summary>
  11. string[] Permissions { get; }
  12. /// <summary>
  13. /// If this property is set to true, all of the <see cref="Permissions"/> must be granted.
  14. /// If it's false, at least one of the <see cref="Permissions"/> must be granted.
  15. /// Default: false.
  16. /// </summary>
  17. bool RequireAllPermissions { get; set; }
  18. }
  19. }