Fix for local_username/password bridge checks.
This commit is contained in:
parent
7b5b5cf43e
commit
06625420e2
@ -197,7 +197,15 @@ int mosquitto_acl_check(struct mosquitto_db *db, struct mosquitto *context, cons
|
|||||||
if(!db->auth_plugin.lib){
|
if(!db->auth_plugin.lib){
|
||||||
return mosquitto_acl_check_default(db, context, topic, access);
|
return mosquitto_acl_check_default(db, context, topic, access);
|
||||||
}else{
|
}else{
|
||||||
return db->auth_plugin.acl_check(db->auth_plugin.user_data, context->id, context->username, topic, access);
|
#ifdef WITH_BRIDGE
|
||||||
|
if(context->bridge){
|
||||||
|
return db->auth_plugin.acl_check(db->auth_plugin.user_data, context->id, context->bridge->local_username, topic, access);
|
||||||
|
}else{
|
||||||
|
#endif
|
||||||
|
return db->auth_plugin.acl_check(db->auth_plugin.user_data, context->id, context->username, topic, access);
|
||||||
|
#ifdef WITH_BRIDGE
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user