From e690d28fef9482e4ec4390b4f934c9e2ee83a53e Mon Sep 17 00:00:00 2001 From: Vitaly Baranov Date: Tue, 15 Mar 2022 20:16:59 +0100 Subject: [PATCH] Update src/Access/AccessControl.cpp Co-authored-by: Antonio Andelic --- src/Access/AccessControl.cpp | 4 ++-- src/Access/AccessControl.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Access/AccessControl.cpp b/src/Access/AccessControl.cpp index a145db9e0e4..91ffd7f04ab 100644 --- a/src/Access/AccessControl.cpp +++ b/src/Access/AccessControl.cpp @@ -450,12 +450,12 @@ void AccessControl::setCustomSettingsPrefixes(const String & comma_separated_pre setCustomSettingsPrefixes(prefixes); } -bool AccessControl::isSettingNameAllowed(const std::string_view & setting_name) const +bool AccessControl::isSettingNameAllowed(const std::string_view setting_name) const { return custom_settings_prefixes->isSettingNameAllowed(setting_name); } -void AccessControl::checkSettingNameIsAllowed(const std::string_view & setting_name) const +void AccessControl::checkSettingNameIsAllowed(const std::string_view setting_name) const { custom_settings_prefixes->checkSettingNameIsAllowed(setting_name); } diff --git a/src/Access/AccessControl.h b/src/Access/AccessControl.h index b1e9e77cab0..0ac3d9cb0c2 100644 --- a/src/Access/AccessControl.h +++ b/src/Access/AccessControl.h @@ -111,8 +111,8 @@ public: /// This function also enables custom prefixes to be used. void setCustomSettingsPrefixes(const Strings & prefixes); void setCustomSettingsPrefixes(const String & comma_separated_prefixes); - bool isSettingNameAllowed(const std::string_view & name) const; - void checkSettingNameIsAllowed(const std::string_view & name) const; + bool isSettingNameAllowed(const std::string_view name) const; + void checkSettingNameIsAllowed(const std::string_view name) const; /// Allows users without password (by default it's allowed). void setNoPasswordAllowed(const bool allow_no_password_);