def METHOD_NAME(self, user_group, asset):
    user_perm_ids = self.get_permissions_for_user_groups([user_group], flat=True)
    asset_perm_ids = self.get_permissions_for_assets([asset], flat=True)
    perm_ids = set(user_perm_ids) & set(asset_perm_ids)
    perms = self.get_permissions(ids=perm_ids)
    return perms