mosquitto-go-auth/test-files/js/acl_script.js

22 lines
340 B
JavaScript

function checkAcl(username, topic, clientid, acc) {
if(username != "correct") {
return false;
}
if(topic != "test/topic") {
return false;
}
if(clientid != "id") {
return false;
}
if(acc != 1) {
return false;
}
return true;
}
checkAcl(username, topic, clientid, acc);