Exemple #1
0
 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());
     }
   }
 }
Exemple #2
0
 @Override
 public boolean isEditable() {
   User currentUser = Scope.get().getComponent(Auth.class).getUser();
   return currentUser.isAdmin() || isAdmin(currentUser);
 }