Fixed a bug where the authorization was not checked correctly

Fixed a bug in the navigation bar.