Fix Case model and restrict access