Skip to content

Commit

Permalink
Fixes #17757 - Check perm before redirecting to manifest page
Browse files Browse the repository at this point in the history
  • Loading branch information
David Davis committed Mar 8, 2017
1 parent b941f26 commit cad5e14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -64,7 +64,7 @@ angular.module('Bastion.subscriptions').controller('SubscriptionsController',

$scope.$on('$stateChangeSuccess', function () {
$scope.subscriptions.$promise.then(function () {
if ($scope.subscriptions.results.length < 1) {
if ($scope.subscriptions.results.length < 1 && $scope.permitted('import_manifest')) {
$scope.transitionTo('subscriptions-manifest.import');
}
});
Expand Down
Expand Up @@ -18,7 +18,7 @@ <h2 translate>Subscriptions</h2>
</div>

<span data-block="no-rows-message" translate>
You currently don't have any Subscriptions, you can add Subscriptions by importing a manifest using the button on the right labeled 'Manage Manifest'.
You currently don't have any Subscriptions.
</span>

<span data-block="no-search-results-message" translate>
Expand Down

0 comments on commit cad5e14

Please sign in to comment.