fixes the editing authorization