mirror of
https://github.com/ovh/the-bastion.git
synced 2025-02-24 23:54:27 +08:00
fix: remove useless warning when there is no guest access
This commit is contained in:
parent
2d79b7a1ba
commit
8c31ea277c
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ sub act {
|
|||
|
||||
# if the user is a guest, must remove all his guest accesses first
|
||||
$fnret = OVH::Bastion::get_acl_way(way => 'groupguest', group => $shortGroup, account => $account);
|
||||
if ($fnret && $fnret->value) {
|
||||
if ($fnret && $fnret->value && @{$fnret->value}) {
|
||||
osh_warn("This account was previously a guest of this group, with the following accesses:");
|
||||
my @acl = @{$fnret->value};
|
||||
OVH::Bastion::print_acls(acls => [{type => 'group-guest', group => $shortGroup, acl => \@acl}]);
|
||||
|
|
Loading…
Reference in a new issue