From 2780d84e0b384a3504b0eb8413025027d6f6dff9 Mon Sep 17 00:00:00 2001 From: Jon Van Oast Date: Fri, 20 Dec 2024 10:06:05 -0700 Subject: [PATCH] dont skip admins in our creation of collab structure --- src/main/java/org/ecocean/Encounter.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/org/ecocean/Encounter.java b/src/main/java/org/ecocean/Encounter.java index 99303edfb1..ce762ce11c 100644 --- a/src/main/java/org/ecocean/Encounter.java +++ b/src/main/java/org/ecocean/Encounter.java @@ -3933,13 +3933,10 @@ public static void opensearchIndexPermissions() { Shepherd myShepherd = new Shepherd("context0"); myShepherd.setAction("Encounter.opensearchIndexPermissions"); myShepherd.beginDBTransaction(); - int nonAdminCt = 0; // it seems as though user.uuid is *required* so we can trust that try { for (User user : myShepherd.getUsersWithUsername()) { usernameToId.put(user.getUsername(), user.getId()); - if (user.isAdmin(myShepherd)) continue; - nonAdminCt++; List collabsFor = Collaboration.collaborationsForUser(myShepherd, user.getUsername()); if (Util.collectionIsEmptyOrNull(collabsFor)) continue; @@ -3955,7 +3952,7 @@ public static void opensearchIndexPermissions() { } Util.mark("perm: user build done", startT); System.out.println("opensearchIndexPermissions(): " + usernameToId.size() + - " total users; " + nonAdminCt + " non-admin; " + collab.size() + " have active collab"); + " total users; " + collab.size() + " have active collab"); // now iterated over (non-public) encounters int encCount = 0; org.json.JSONObject updateData = new org.json.JSONObject();