permissionsForm = permissionsForm.fill(permission);
return ok(edit.render(permissionsForm, User.findByEmail(request().username()), id));
}
<BUG>public static Result view(Long id) {
return ok(
view.render(
Permission.findById(id), User.findByEmail(request().username())
</BUG>
)
);

permissionsForm = permissionsForm.fill(permission);
return ok(edit.render(permissionsForm, User.findByEmail(request().username()), id));
}
public static Result view(Long id) {
Permission permission = Permission.findById(id);
if (permission == null) return notFound("There is no Permission with ID " + id);
return ok(
view.render(permission, User.findByEmail(request().username())
)
);
