예제 #1
0
  public boolean isEditable() {

    User loggedIn = FlashUtils.getSessionUser();

    if (loggedIn == null) return false;

    return loggedIn.isAdmin() || loggedIn.getId() == id;
  }