#NEWLINE# def _check_for_ownership( self , user , key ) : #NEWLINE# #INDENT# required_group = self . _get_group_by_key ( key ) #NEWLINE# if ( required_group not in user . groups ) : #NEWLINE# #INDENT# raise PermissionDenied ( 'You do not have permission to access this key scope' )