From 4c7c760d446e5d6a6bbe7b574225e9e3d66d986a Mon Sep 17 00:00:00 2001
From: Guillaume Rousse <guillaume.rousse@renater.fr>
Date: Wed, 11 Mar 2020 13:39:28 +0100
Subject: [PATCH] configuration parameter renaming

---
 conf/manager.conf.in      | 2 +-
 lib/AccountManager/App.pm | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/conf/manager.conf.in b/conf/manager.conf.in
index f467ec4..79723b6 100644
--- a/conf/manager.conf.in
+++ b/conf/manager.conf.in
@@ -12,7 +12,7 @@ templates_theme = edugain
 accounts_file = /var/lib/access-check/accounts.php
 
 [status]
-allow = 127.0.0.1, ::1, 10.45.0.0/16
+allowed = 127.0.0.1, ::1, 10.45.0.0/16
 disabled = 0
 
 [federations]
diff --git a/lib/AccountManager/App.pm b/lib/AccountManager/App.pm
index 35f8b07..c978e28 100644
--- a/lib/AccountManager/App.pm
+++ b/lib/AccountManager/App.pm
@@ -709,8 +709,8 @@ sub req_status {
     Net::IP->require();
     my $source_ip_string = get_source_address();
     my $source_ip = Net::IP->new($source_ip_string);
-    my @allowed_ips_strings = $self->{configuration}->{status}->{allow} ?
-        split(/, */, $self->{configuration}->{status}->{allow}) : ();
+    my @allowed_ips_strings = $self->{configuration}->{status}->{allowed} ?
+        split(/, */, $self->{configuration}->{status}->{allowed}) : ();
     my @allowed_ips = map { Net::IP->new($_) } @allowed_ips_strings;
 
     if (any { $_->overlaps($source_ip) } @allowed_ips) {
-- 
GitLab