From 67d71f926fd0db772ba002077488250b4147723d Mon Sep 17 00:00:00 2001 From: Yannick Trinh Date: Thu, 14 Nov 2024 15:25:40 +0100 Subject: [PATCH] Fix typo --- Project/Sources/Classes/OAuth2Provider.4dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Project/Sources/Classes/OAuth2Provider.4dm b/Project/Sources/Classes/OAuth2Provider.4dm index 91370ff..48c1d7f 100644 --- a/Project/Sources/Classes/OAuth2Provider.4dm +++ b/Project/Sources/Classes/OAuth2Provider.4dm @@ -625,7 +625,9 @@ Function _checkPrerequisites($obj : Object) : Boolean : (Length(String($obj.clientId))=0) This._throwError(2; {attribute: "clientId"}) - : ((Length(String($obj.name))>0) && (Length(String($obj.scope))=0)) + : ((Length(String($obj.name))>0) && \ + ((Value type($obj.scope)=Is text) && (Length(String($obj.scope))=0)) || \ + ((Value type($obj.scope)=Is collection) && ($obj.scope.length=0))) This._throwError(2; {attribute: "scope"}) : (Length(String($obj.permission))=0)