fixed bug wihch showed editor to unauthenticated visitors