Skip to content

Commit

Permalink
Migrate User.isInSiteAdminGroup() -> User.hasSiteAdminPermission() (#248
Browse files Browse the repository at this point in the history
)
  • Loading branch information
labkey-adam authored Oct 7, 2023
1 parent bf7e397 commit 0f63095
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ public RecoverCompletedJobsButton()
@Override
public boolean isAvailable(TableInfo ti)
{
return ti.getUserSchema().getUser().isInSiteAdminGroup() && (super.isAvailable(ti) || ContainerManager.getRoot().equals(ti.getUserSchema().getContainer()));
return ti.getUserSchema().getUser().hasSiteAdminPermission() && (super.isAvailable(ti) || ContainerManager.getRoot().equals(ti.getUserSchema().getContainer()));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ public ReplaceJobStoreButton()
@Override
public boolean isAvailable(TableInfo ti)
{
return ti.getUserSchema().getUser().isInSiteAdminGroup() && (super.isAvailable(ti) || ContainerManager.getRoot().equals(ti.getUserSchema().getContainer()));
return ti.getUserSchema().getUser().hasSiteAdminPermission() && (super.isAvailable(ti) || ContainerManager.getRoot().equals(ti.getUserSchema().getContainer()));
}
}

0 comments on commit 0f63095

Please sign in to comment.