Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yannicktrinh committed Nov 14, 2024
1 parent a4fb3a3 commit 67d71f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Project/Sources/Classes/OAuth2Provider.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 67d71f9

Please sign in to comment.