From 665e444e881ec2ca4378b346d45dbc488ac89a2b Mon Sep 17 00:00:00 2001 From: Janne Heß Date: Tue, 23 Apr 2019 12:42:01 +0200 Subject: Support disabling the DECT field It's a really chaos-event-specific feature and is confusing for many people on non-chaos events. --- includes/pages/admin_user.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes/pages/admin_user.php') diff --git a/includes/pages/admin_user.php b/includes/pages/admin_user.php index d42c3b39..773238ce 100644 --- a/includes/pages/admin_user.php +++ b/includes/pages/admin_user.php @@ -55,7 +55,9 @@ function admin_user() $html .= ' Name' . '' . "\n"; $html .= ' Vorname' . '' . "\n"; $html .= ' Handy' . '' . "\n"; - $html .= ' DECT' . '' . "\n"; + if (config('enable_dect')) { + $html .= ' DECT' . '' . "\n"; + } if ($user_source->settings->email_human) { $html .= " email" . '' . "\n"; } -- cgit v1.2.3-54-g00ecf