 
     /* Get a filtered result */
     } else {
-      pk = _getKeys(obj.name, obj.filter, obj.showDeleted, false);
+      pk = _getKeys(obj.name, obj.filter, obj.showDeleted, isSuperUser);
 
       if (pk.length) {
         tokens = [];


    /* Handle change log */
    now = featherbone.now();
    _insert({
      name: "Log",
      data: {

      tokens = [table],
      criteria = filter ? filter.criteria || [] : false,
      sort = filter ? filter.sort || [] : false,
      folderSql = "",
      params = [],
      parts = [],
      i = 0,
      p = 1;

    /* Add authorization criteria */
    if (isSuperUser === false) {
      if (featherbone.getFeather(name).properties.folder) {
        folderSql = "INTERSECT " +
          "SELECT %I._pk " +
          "FROM %I" +
          "  JOIN folder ON _folder_folder_pk=folder._pk " +
          "WHERE EXISTS (" +
          "  SELECT can_read FROM (" +
          "    SELECT can_read" +
          "    FROM \"$auth\"" +
          "      JOIN \"role\" on \"$auth\".\"role_pk\"=\"role\".\"_pk\"" +
          "      JOIN \"role_member\"" +
          "        ON \"role\".\"_pk\"=\"role_member\".\"_parent_role_pk\"" +
          "    WHERE member=$1" +
          "      AND object_pk=folder._pk" +
          "    ORDER BY is_inherited, can_read DESC" +
          "    LIMIT 1" +
          "  ) AS data" +
          "  WHERE can_read" +
          ") ";
      }

      sql += " AND _pk IN (" +
        "SELECT %I._pk " +
        "FROM %I " +
