If user has no appstore scope, we cannot get subscription info

This commit is contained in:
Girish Ramakrishnan
2018-06-27 18:15:48 -07:00
parent 3bb82d5e68
commit 3be660dcd9
+6
View File
@@ -474,6 +474,12 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
return callback();
}
// for users who can just install apps, pretend there is a valid appstore account (and handle it appropriately in appstore accesscontrol)
if (!Client.hasScope('appstore')) {
$scope.validAppstoreAccount = true;
return callback();
}
Client.getAppstoreConfig(function (error, result) {
if (error) return callback(error);