File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
aspnet-core/src/AbpCompanyName.AbpProjectName.Application/Users Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -15,23 +15,20 @@ namespace AbpCompanyName.AbpProjectName.Users
15
15
public class UserAppService : AbpProjectNameAppServiceBase , IUserAppService
16
16
{
17
17
private readonly IRepository < User , long > _userRepository ;
18
- private readonly IPermissionManager _permissionManager ;
19
18
private readonly IPasswordHasher < User > _passwordHasher ;
20
19
21
20
public UserAppService (
22
21
IRepository < User , long > userRepository ,
23
- IPermissionManager permissionManager ,
24
22
IPasswordHasher < User > passwordHasher )
25
23
{
26
24
_userRepository = userRepository ;
27
- _permissionManager = permissionManager ;
28
25
_passwordHasher = passwordHasher ;
29
26
}
30
27
31
28
public async Task ProhibitPermission ( ProhibitPermissionInput input )
32
29
{
33
30
var user = await UserManager . GetUserByIdAsync ( input . UserId ) ;
34
- var permission = _permissionManager . GetPermission ( input . PermissionName ) ;
31
+ var permission = PermissionManager . GetPermission ( input . PermissionName ) ;
35
32
36
33
await UserManager . ProhibitPermissionAsync ( user , permission ) ;
37
34
}
You can’t perform that action at this time.
0 commit comments