We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4fb3a3 commit 67d71f9Copy full SHA for 67d71f9
Project/Sources/Classes/OAuth2Provider.4dm
@@ -625,7 +625,9 @@ Function _checkPrerequisites($obj : Object) : Boolean
625
: (Length(String($obj.clientId))=0)
626
This._throwError(2; {attribute: "clientId"})
627
628
- : ((Length(String($obj.name))>0) && (Length(String($obj.scope))=0))
+ : ((Length(String($obj.name))>0) && \
629
+ ((Value type($obj.scope)=Is text) && (Length(String($obj.scope))=0)) || \
630
+ ((Value type($obj.scope)=Is collection) && ($obj.scope.length=0)))
631
This._throwError(2; {attribute: "scope"})
632
633
: (Length(String($obj.permission))=0)
0 commit comments