Move "Set up variables for sidebar" code from beforeFilter to
beforeRender

When a user's session expires and get restarted, their admin role isn't
recognized in beforeFilter, but it IS in beforeRender. Before the
change, sidebar variables for admins would occasionally not be set
because of this.