Skip to content

Commit

Permalink
Migrate User.isInSiteAdminGroup() -> User.hasSiteAdminPermission() (#109
Browse files Browse the repository at this point in the history
)
  • Loading branch information
labkey-adam authored Oct 7, 2023
1 parent 4b7acd0 commit d4a27af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d4a27af

Please sign in to comment.