Remove setup and superuser routes when SUPER_USERS is not enabled

Fixes #2064
This commit is contained in:
Joseph Schorr 2016-11-02 16:10:20 -04:00
parent a3c540efcb
commit 32627f3c2a
3 changed files with 12 additions and 10 deletions

View file

@ -109,6 +109,14 @@ quayApp.config(['$routeProvider', '$locationProvider', 'pages', function($routeP
{id: 'layout', templatePath: '/static/partials/'}
], layoutProfile);
if (window.__features.SUPER_USERS) {
// QE Management
routeBuilder.route('/superuser/', 'superuser')
// QE Setup
.route('/setup/', 'setup');
}
routeBuilder
// Repository View
.route('/repository/:namespace/:name', 'repo-view')
@ -162,12 +170,6 @@ quayApp.config(['$routeProvider', '$locationProvider', 'pages', function($routeP
// New Repository
.route('/new/', 'new-repo')
// ER Management
.route('/superuser/', 'superuser')
// ER Setup
.route('/setup/', 'setup')
// Plans
.route('/plans/', 'plans')