    def has_scope(self, scope):
        """Is the current request being made with the given scope?"""
        return scopes.has_scope(scope, self.parsed_scopes, db=self.db)
Is the current request being made with the given scope?
jupyterhub/handlers/base.py