using System.Threading.Tasks; namespace Abp.Authorization { /// /// This class is used to permissions for users. /// public interface IPermissionChecker { /// /// Checks if current user is granted for a permission. /// /// Name of the permission Task IsGrantedAsync(string permissionName); /// /// Checks if a user is granted for a permission. /// /// User to check /// Name of the permission Task IsGrantedAsync(UserIdentifier user, string permissionName); } }