#NEWLINE# def has_permissions( self ) : #NEWLINE# #INDENT# ' Check current user permission set\n\n        Checks the current user permission set against the one being requested\n        by the application.\n        ' #NEWLINE# perms = self . request ( '/me/permissions' ) [ 'data' ] [ 0 ] . keys ( ) #NEWLINE# return all ( ( ( k in perms ) for k in app . config [ 'CANVAS_SCOPE' ] . split ( ',' ) ) )