All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit ccaa9e5a authored by Leigh B Stoller's avatar Leigh B Stoller

Fix up adminonly test for aggregates.

parent dbc8366a
......@@ -770,7 +770,8 @@ foreach my $aggregate_urn (@aggregate_urns) {
if ($aptaggregate->disabled()) {
UserError("$aggregate_urn is currently offline, try again later");
if ($aptaggregate->adminonly()) {
if ($aptaggregate->adminonly() &&
!(defined($this_user) && $this_user->IsAdmin())) {
UserError("Only administrators may use $aggregate_urn");
my $authority = GeniAuthority->Lookup($aggregate_urn);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment