From d7e7b622ce73ae5089f62e59fccdb6cbbd7be918 Mon Sep 17 00:00:00 2001 From: Christophe Maudoux Date: Tue, 20 Aug 2019 17:06:51 +0200 Subject: [PATCH] Disable viewer with default options (#1880) --- lemonldap-ng-common/lemonldap-ng.ini | 5 +++-- lemonldap-ng-manager/lib/Lemonldap/NG/Manager.pm | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lemonldap-ng-common/lemonldap-ng.ini b/lemonldap-ng-common/lemonldap-ng.ini index 8696cdafb..3a99cf5d7 100644 --- a/lemonldap-ng-common/lemonldap-ng.ini +++ b/lemonldap-ng-common/lemonldap-ng.ini @@ -372,10 +372,11 @@ languages = fr, en, it, vi, ar ; Manager modules enabled ; Set here the list of modules you want to see in manager interface ; The first will be used as default module displayed -enabledModules = conf, sessions, notifications, 2ndFA, viewer +;enabledModules = conf, sessions, notifications, 2ndFA, viewer +enabledModules = conf, sessions, notifications, 2ndFA ; To avoid restricted users to edit configuration, defaulModule MUST be different than 'conf' -; 'viewer' is set by default +; 'conf' is set by default ;defaultModule = viewer ; Viewer module allows us to edit configuration in read-only mode diff --git a/lemonldap-ng-manager/lib/Lemonldap/NG/Manager.pm b/lemonldap-ng-manager/lib/Lemonldap/NG/Manager.pm index 8d829e262..f45fa5323 100644 --- a/lemonldap-ng-manager/lib/Lemonldap/NG/Manager.pm +++ b/lemonldap-ng-manager/lib/Lemonldap/NG/Manager.pm @@ -52,7 +52,7 @@ sub init { return 0; } - $self->{enabledModules} ||= "conf, sessions, notifications, 2ndFA, viewer"; + $self->{enabledModules} ||= "conf, sessions, notifications, 2ndFA"; my @links; my @enabledModules = map { push @links, $_; "Lemonldap::NG::Manager::" . ucfirst($_) }