public void start() { evalHistoryToken(History.getToken()); if (!historyToken.isProjectIdSet()) { User user = auth.getUser(); Project project = user.getCurrentProject(); if (project == null || user.isAdmin()) { gotoProjectSelector(); } else { gotoProject(project.getId()); } } }
@Override public boolean isEditable() { User currentUser = Scope.get().getComponent(Auth.class).getUser(); return currentUser.isAdmin() || isAdmin(currentUser); }