From d4a27af1a82ef018c928c8b8586c5d0bd499a2df Mon Sep 17 00:00:00 2001 From: Adam Rauch Date: Fri, 6 Oct 2023 18:14:43 -0700 Subject: [PATCH] Migrate User.isInSiteAdminGroup() -> User.hasSiteAdminPermission() (#109) --- src/org/labkey/trialshare/ITNSpecimenRequestCustomizer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/labkey/trialshare/ITNSpecimenRequestCustomizer.java b/src/org/labkey/trialshare/ITNSpecimenRequestCustomizer.java index 036ea738..e342c72e 100644 --- a/src/org/labkey/trialshare/ITNSpecimenRequestCustomizer.java +++ b/src/org/labkey/trialshare/ITNSpecimenRequestCustomizer.java @@ -43,7 +43,7 @@ public boolean canChangeStatus(User user) Group specimenRequestAdmins = GroupManager.getGroup(ContainerManager.getRoot(), "Specimen Request Administrators", GroupEnumType.SITE); if (specimenRequestAdmins != null) { - return user.isInSiteAdminGroup() || user.isInGroup(specimenRequestAdmins.getUserId()); + return user.hasSiteAdminPermission() || user.isInGroup(specimenRequestAdmins.getUserId()); } LOG.error("Unable to find site group \"Specimen Request Administrators\", allowing user to update specimen request status"); return true;