Commit ccaa9e5a authored by Leigh Stoller's avatar Leigh 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