def get_session
        session_id = params[:id]
        if session_id == "current"
          if @auth_session.nil?
            raise Repia::Errors::NotFound
          end
          session_id = @auth_session.id
        end
        @session = find_object(Session, session_id)
        authorize_for!(@session)
        if @session.expired?
          @session.destroy
          raise Repia::Errors::NotFound
        end
      end
def get_session
        session_id = params[:id]
        if session_id == "current"
          if @auth_session.nil?
            raise Repia::Errors::NotFound
          end
          session_id = @auth_session.id
        end
        @session = find_object(Session, session_id)
        authorize_for!(@session)
        if @session.expired?
          @session.destroy
          raise Repia::Errors::NotFound
        end
      end
Get the specified or current session.

 A Repia::Errors::NotFound is raised if the session does not
 exist (or deleted due to expiration).

 A ApplicationController::UNAUTHORIZED_ERROR is raised if the
 authenticated user does not have authorization for the specified
 session.