File tree Expand file tree Collapse file tree 5 files changed +13
-16
lines changed
src/AbpCompanyName.AbpProjectName.Application/Users Expand file tree Collapse file tree 5 files changed +13
-16
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ dotnet publish --output (Join-Path $outputFolder "Mvc")
25
25
# Mvc
26
26
Set-Location (Join-Path $outputFolder " Mvc" )
27
27
28
- docker rmi zero / mvc -f
29
- docker build - t zero / mvc .
28
+ docker rmi abp / mvc -f
29
+ docker build - t abp / mvc .
30
30
31
31
# # DOCKER COMPOSE FILES #######################################################
32
32
Original file line number Diff line number Diff line change @@ -39,14 +39,14 @@ $ngConfigPath = Join-Path $outputFolder "ng/assets/appconfig.json"
39
39
# Host
40
40
Set-Location (Join-Path $outputFolder " Host" )
41
41
42
- docker rmi zero / host -f
43
- docker build - t zero / host .
42
+ docker rmi abp / host -f
43
+ docker build - t abp / host .
44
44
45
45
# Angular UI
46
46
Set-Location (Join-Path $outputFolder " ng" )
47
47
48
- docker rmi zero / ng -f
49
- docker build - t zero / ng .
48
+ docker rmi abp / ng -f
49
+ docker build - t abp / ng .
50
50
51
51
# # DOCKER COMPOSE FILES #######################################################
52
52
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ version: '2'
2
2
3
3
services :
4
4
5
- zero_mvc :
6
- image : zero /mvc
5
+ abp_mvc :
6
+ image : abp /mvc
7
7
environment :
8
8
- ASPNETCORE_ENVIRONMENT=Staging
9
9
ports :
Original file line number Diff line number Diff line change @@ -2,16 +2,16 @@ version: '2'
2
2
3
3
services :
4
4
5
- zero_host :
6
- image : zero /host
5
+ abp_host :
6
+ image : abp /host
7
7
environment :
8
8
- ASPNETCORE_ENVIRONMENT=Staging
9
9
ports :
10
10
- " 9901:80"
11
11
volumes :
12
12
- " ./Host-Logs:/app/App_Data/Logs"
13
13
14
- zero_ng :
15
- image : zero /ng
14
+ abp_ng :
15
+ image : abp /ng
16
16
ports :
17
17
- " 9902:80"
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