jsonData = Json.toJson(users);
}
return ok(jsonData);
}
public static Result view(Long id) {
<BUG>User curator = User.findById(id);
User user = User.findByEmail(request().username());</BUG>
List<Role> roles = null;
if (user.isSysAdmin()) {
roles = Role.findAll();

jsonData = Json.toJson(users);
}
return ok(jsonData);
}
public static Result view(Long id) {
User curator = User.findById(id);
if (curator == null) return notFound("There is no Curator with ID " + id);
User user = User.findByEmail(request().username());
List<Role> roles = null;
if (user.isSysAdmin()) {
roles = Role.findAll();
