Skip to content

Commit 67d71f9

Browse files
committed
Fix typo
1 parent a4fb3a3 commit 67d71f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Project/Sources/Classes/OAuth2Provider.4dm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,9 @@ Function _checkPrerequisites($obj : Object) : Boolean
625625
: (Length(String($obj.clientId))=0)
626626
This._throwError(2; {attribute: "clientId"})
627627

628-
: ((Length(String($obj.name))>0) && (Length(String($obj.scope))=0))
628+
: ((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)))
629631
This._throwError(2; {attribute: "scope"})
630632

631633
: (Length(String($obj.permission))=0)

0 commit comments

Comments
 (0)