Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update models.js
  • Loading branch information
jankal authored Jan 3, 2018
commit 9112f8ed937d5c7fbfae93e7fc1ff1e01601d196
2 changes: 1 addition & 1 deletion components/oauth/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function getRefreshToken(refreshToken) {
});
}

function validateScope(token, client) {
function validateScope(user, client, scope) {
return (user.scope === scope && client.scope === scope && scope !== null) ? scope : false
}

Expand Down