fix when logged with a user who cannot edit