PolyGerrit: Allow everyone to view /admins/project(/)? page

gwtui allows anon's to view this page so allow this with polygerrit.

Change-Id: Ic59ccc0cd1861115971f3d5c9401496cc4f0a488
This commit is contained in:
Paladox none
2017-05-29 18:04:20 +00:00
parent 3fc8cf8a1a
commit b177e56c71

View File

@@ -110,16 +110,10 @@
// Matches /admin/projects[,<offset>][/].
page(/^\/admin\/projects(,(\d+))?(\/)?$/, loadUser, data => {
restAPI.getLoggedIn().then(loggedIn => {
if (loggedIn) {
app.params = {
view: 'gr-admin-project-list',
offset: data.params[1] || 0,
};
} else {
page.redirect('/login/' + encodeURIComponent(data.canonicalPath));
}
});
app.params = {
view: 'gr-admin-project-list',
offset: data.params[1] || 0,
};
});
page('/admin/(.*)', loadUser, data => {