diff --git a/src/cloud.js b/src/cloud.js index 3737912e..44fcf0a1 100755 --- a/src/cloud.js +++ b/src/cloud.js @@ -267,7 +267,7 @@ Cloud.prototype.checkCredentials = function (onSuccess, onError, response) { onSuccess.call( null, user.username, - user.isadmin, + user.role, response ? JSON.parse(response) : null ); } diff --git a/src/gui.js b/src/gui.js index 8020b565..bd712570 100644 --- a/src/gui.js +++ b/src/gui.js @@ -5387,7 +5387,7 @@ IDE_Morph.prototype.initializeCloud = function () { user.username.toLowerCase(), user.password, user.choice, - function (username, isadmin, response) { + function (username, role, response) { sessionStorage.username = username; myself.source = 'cloud'; if (!isNil(response.days_left)) {