Skip to content

Commit

Permalink
Update src/Access/AccessControl.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Antonio Andelic <[email protected]>
  • Loading branch information
vitlibar and antonio2368 committed Mar 16, 2022
1 parent 1eb2e86 commit e690d28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Access/AccessControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Access/AccessControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ class AccessControl : public MultipleAccessStorage
/// 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_);
Expand Down

0 comments on commit e690d28

Please sign in to comment.