check if user has visibility on a thing
Hi all,
I have a set of things (collected in a infotable) and I would like to know if the current user logged has visibility for each thing in order to show just his thing.
I would like to avoid to use GetImplementingThing function because if I will have a large number of Thing, the service will respond slowly.
Please see code below:
for (var x = 0; x < listLength; x++) {
var rowPos = list.rows[x];
var posInstance = Things[rowPos.PosThingName];
try {
if(posInstance.name) { result.AddRow(rowPos); }
} catch(err) {
}
}
This will work because the "posInstance.name" will return error
User does not have visibility permission for....THING_NAME
but this cause a large number of log error in monitoring and I would like to avoid that.
Is there a way to know if current user has visibility permission on a Thing?

