From 645cc36c05909b0ffd0ec9423e3633c8a1b8673b Mon Sep 17 00:00:00 2001 From: William Heimbigner Date: Thu, 7 Jan 2016 19:55:36 -0700 Subject: Use Tie::CPHash to make %::sn and %::sc case-insensitiveish. Clean up commands.xml and fix some bugs Add clone detection Minimize some excessive warnings Greatly improve syncing speed --- lib/ASM/Commander.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/ASM/Commander.pm') diff --git a/lib/ASM/Commander.pm b/lib/ASM/Commander.pm index d864800..c1f93ef 100644 --- a/lib/ASM/Commander.pm +++ b/lib/ASM/Commander.pm @@ -35,7 +35,10 @@ sub command next unless (defined($command->{nohush}) && ($command->{nohush} eq "nohush")); } if (defined($command->{flag})) { #If the command is restricted, - if (!defined($::users->{person}->{$acct})) { #make sure the requester has an account + if (!defined($acct)) { + $fail = 1; + } + elsif (!defined($::users->{person}->{$acct})) { #make sure the requester has an account $fail = 1; } elsif (!defined($::users->{person}->{$acct}->{flags})) { #make sure the requester has flags defined -- cgit v1.2.3