Skip to content
Snippets Groups Projects
Verified Commit ce626c76 authored by Konstantin Tsabolov's avatar Konstantin Tsabolov
Browse files

chore: return false if a policy was not specified

parent 1610160a
No related branches found
No related tags found
No related merge requests found
Pipeline #39549 failed
...@@ -56,7 +56,7 @@ export class PoliciesService { ...@@ -56,7 +56,7 @@ export class PoliciesService {
public checkAutoReissue(tenantId: string, credentialId: string) { public checkAutoReissue(tenantId: string, credentialId: string) {
if (!this.policiesParams.autoReissue.policy) { if (!this.policiesParams.autoReissue.policy) {
return { result: true }; return { result: false };
} }
return this.evaluatePolicy( return this.evaluatePolicy(
...@@ -68,7 +68,7 @@ export class PoliciesService { ...@@ -68,7 +68,7 @@ export class PoliciesService {
public checkAutoRevocation(tenantId: string, credentialId: string) { public checkAutoRevocation(tenantId: string, credentialId: string) {
if (!this.policiesParams.autoRevocation.policy) { if (!this.policiesParams.autoRevocation.policy) {
return { result: true }; return { result: false };
} }
return this.evaluatePolicy( return this.evaluatePolicy(
...@@ -80,7 +80,7 @@ export class PoliciesService { ...@@ -80,7 +80,7 @@ export class PoliciesService {
public checkRefresh(tenantId: string, credentialId: string) { public checkRefresh(tenantId: string, credentialId: string) {
if (!this.policiesParams.refresh.policy) { if (!this.policiesParams.refresh.policy) {
return { result: true }; return { result: false };
} }
return this.evaluatePolicy( return this.evaluatePolicy(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment