If user has no appstore scope, we cannot get subscription info
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user