mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-26 21:08:54 +02:00
Fix permission check
This commit is contained in:
parent
0d32b5864b
commit
1a9d0b3516
3 changed files with 5 additions and 3 deletions
|
@ -331,8 +331,7 @@ void Server::onMessageReceived(const std::shared_ptr<StreamSession>& streamSessi
|
|||
LOG(ERROR, LOG_TAG) << "Authentication required\n";
|
||||
error_msg = make_shared<msg::Error>(401, "Unauthorized", ec ? ec.detailed_message() : "Authentication required");
|
||||
}
|
||||
|
||||
if (!streamSession->authinfo.hasPermission("Streaming"))
|
||||
else if (!streamSession->authinfo.hasPermission("Streaming"))
|
||||
{
|
||||
std::string error = "Permission 'Streaming' missing";
|
||||
LOG(ERROR, LOG_TAG) << error << "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue