Fix usage of normalizeScope

This commit is contained in:
Girish Ramakrishnan
2018-05-01 13:17:34 -07:00
parent f76a5a7ba7
commit c5ffb65563
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ function initialize() {
var token = tokendb.generateToken();
var expires = Date.now() + constants.DEFAULT_TOKEN_EXPIRATION;
var scope = accesscontrol.normalizeScope(client.scope, user.scope);
var scope = accesscontrol.normalizeScope(user.scope, client.scope);
tokendb.add(token, user.id, client.id, expires, scope, function (error) {
if (error) return callback(error);