As discussed, this method should be changed to `session[:editing_allowed] = current_user.admin?` to remove the environment dependency for checking, whether editing is allowed or not. This requires the developers to login, if they want to see the page as an editor.