docs: def get_module_can_publish(cursor, id):
      """Return userids allowed to publish this book."""
      cursor.execute("""
  SELECT DISTINCT user_id
  FROM document_acl
  WHERE uuid = %s AND permission = 'publish'""", (id,))
      return [i[0] for i in cursor.fetchall()]