mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-25 14:07:05 +02:00
Fixes
This commit is contained in:
parent
81f849bea9
commit
c5ea25a5ea
5 changed files with 17 additions and 16 deletions
|
@ -76,9 +76,11 @@ struct ServerSettings
|
|||
/// c'tor
|
||||
Authorization() = default;
|
||||
|
||||
/// c'tor
|
||||
Authorization(const std::vector<std::string>& conf_roles, const std::vector<std::string>& conf_users)
|
||||
void init(const std::vector<std::string>& conf_roles, const std::vector<std::string>& conf_users)
|
||||
{
|
||||
roles.clear();
|
||||
users.clear();
|
||||
|
||||
for (const auto& role : conf_roles)
|
||||
roles.emplace_back(std::make_shared<ServerSettings::Authorization::Role>(role));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue