From 411956fd07ecf915fbd946da0018c338b71ffd09 Mon Sep 17 00:00:00 2001 From: ahmedyasser <26207361+1AhmedYasser@users.noreply.github.com> Date: Thu, 6 Jun 2024 15:22:00 +0300 Subject: [PATCH] Modified UnAuthorized Status --- DSL/Ruuter.private/DSL/GET/.guard | 1 + DSL/Ruuter.private/DSL/POST/.guard | 1 + DSL/Ruuter.private/DSL/TEMPLATES/check-user-authority.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/DSL/Ruuter.private/DSL/GET/.guard b/DSL/Ruuter.private/DSL/GET/.guard index c1e7a08c..faac86f6 100644 --- a/DSL/Ruuter.private/DSL/GET/.guard +++ b/DSL/Ruuter.private/DSL/GET/.guard @@ -24,4 +24,5 @@ guard_success: guard_fail: return: "unauthorized" + status: 200 next: end diff --git a/DSL/Ruuter.private/DSL/POST/.guard b/DSL/Ruuter.private/DSL/POST/.guard index c1e7a08c..faac86f6 100644 --- a/DSL/Ruuter.private/DSL/POST/.guard +++ b/DSL/Ruuter.private/DSL/POST/.guard @@ -24,4 +24,5 @@ guard_success: guard_fail: return: "unauthorized" + status: 200 next: end diff --git a/DSL/Ruuter.private/DSL/TEMPLATES/check-user-authority.yml b/DSL/Ruuter.private/DSL/TEMPLATES/check-user-authority.yml index b9ad4984..4e07e577 100644 --- a/DSL/Ruuter.private/DSL/TEMPLATES/check-user-authority.yml +++ b/DSL/Ruuter.private/DSL/TEMPLATES/check-user-authority.yml @@ -40,6 +40,7 @@ return_authorized: next: end return_unauthorized: + status: 200 return: false next: end