From 3be660dcd9c86b5f9ec05e61602989c4a2a8b2a5 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 27 Jun 2018 18:15:48 -0700 Subject: [PATCH] If user has no appstore scope, we cannot get subscription info --- src/views/appstore.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/appstore.js b/src/views/appstore.js index 399bf4de0..17f13b2bd 100644 --- a/src/views/appstore.js +++ b/src/views/appstore.js @@ -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);