protect blacklisting to my id

This commit is contained in:
James B. Pollack 2015-12-27 12:46:40 -08:00
parent 28c53822b1
commit 546e908633

View file

@ -777,7 +777,7 @@ function MyController(hand) {
}
var intersection;
if(USE_BLACKLIST===true){
intersection = Entities.findRayIntersection(pickRay, true, [], blacklist);
}
@ -1662,7 +1662,7 @@ handleHandMessages = function(channel, message, sender) {
} catch (e) { }
}
else if (channel === 'Hifi-Hand-RayPick-Blacklist') {
else if (channel === 'Hifi-Hand-RayPick-Blacklist' && sender === MyAvatar.sessionUUID) {
try {
var data = JSON.parse(message);
var action = data.action;