|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
|
using System; |
|
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
|
using Microsoft.Extensions.DependencyInjection.Extensions; |
|
|
|
using Volo.Abp.Authorization; |
|
|
|
using Volo.Abp.Authorization.Permissions; |
|
|
|
@ -8,6 +9,7 @@ namespace Microsoft.Extensions.DependencyInjection |
|
|
|
public static class AbpAuthorizationServiceCollectionExtensions |
|
|
|
{ |
|
|
|
//TODO: Remove this and use AddAlwaysAllowAuthorization
|
|
|
|
[Obsolete("Use AddAlwaysAllowAuthorization instead")] |
|
|
|
public static IServiceCollection AddAlwaysAllowPermissionChecker(this IServiceCollection services) |
|
|
|
{ |
|
|
|
return services.Replace(ServiceDescriptor.Singleton<IPermissionChecker, AlwaysAllowPermissionChecker>()); |
|
|
|
|