Disable save or access button according to logic