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 1e353150 authored by Leigh B Stoller's avatar Leigh B Stoller

Check to see if selected aggregate or default aggregate is enabled in the

apt_aggregates table. Also check the adminonly flag.
parent 1ef13494
......@@ -750,6 +750,13 @@ foreach my $aggregate_urn (@aggregate_urns) {
if (!defined($aggobj)) {
fatal("Could not create aggregate object for $aggregate_urn");
}
# Check for disabled/adminonly aggregates.
if ($aggobj->disabled()) {
UserError("$aggregate_urn is currently offline, try again later");
}
if ($aggobj->adminonly()) {
UserError("Only administrators may use $aggregate_urn");
}
$aggobj->_authority($authority);
push(@aggregate_list, $aggobj);
}
......
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