Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/2161 #2352

Merged
merged 2 commits into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api-gateway/src/api/service/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export class ContractsApi {
@Delete('/retire/request')
@HttpCode(HttpStatus.OK)
async deleteRetireRequest(@Req() req, @Response() res): Promise<any> {
await checkPermission(UserRole.STANDARD_REGISTRY)(req.user);
await checkPermission(UserRole.STANDARD_REGISTRY, UserRole.USER)(req.user);
try {
const user = req.user;
const guardians = new Guardians();
Expand Down
2 changes: 1 addition & 1 deletion api-gateway/src/api/service/policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class PolicyApi {
@Get('/')
@HttpCode(HttpStatus.OK)
async getPolicies(@Req() req, @Response() res): Promise<any> {
await checkPermission(UserRole.STANDARD_REGISTRY, UserRole.USER)(req.user);
await checkPermission(UserRole.STANDARD_REGISTRY, UserRole.USER, UserRole.AUDITOR)(req.user);
const users = new Users();
const engineService = new PolicyEngine();
try {
Expand Down
2 changes: 1 addition & 1 deletion worker-service/configs/.env.worker
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Guardian Service Specialized Variables
DIRECT_MESSAGE_PORT="6557"
#DIRECT_MESSAGE_PORT="6557"
# Vault
VAULT_APPROLE_ROLE_ID=
VAULT_APPROLE_SECRET_ID=
Expand Down
2 changes: 1 addition & 1 deletion worker-service/configs/.env.worker.develop
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Guardian Service Specialized Variables
DIRECT_MESSAGE_PORT="6557"
#DIRECT_MESSAGE_PORT="6557"
# Vault
VAULT_APPROLE_ROLE_ID=
VAULT_APPROLE_SECRET_ID=
Expand Down