def has_permissions(self):
        perms = self.request('/me/permissions')['data'][0].keys()
        return all(k in perms for k in app.config[
            'CANVAS_SCOPE'].split(','))
Check current user permission set
dataset/ETHPy150Open demianbrecht/flask-canvas/flask_canvas.py/User.has_permissions