Fix bug in authorizing a session edit