Open perborgen opened 5 years ago
test
for(var i = 0; i < ids.length; i++) {
var item = nodes[i];
var roles = item.roles || {};
var perms = roles[actor] || roles.guest || 0;
var guard = item.visibility || 0;
if(guard && (role & guard) == 0){ role = 0; }
if(item.uid == actor && !perms){ perms = ROLES.MAINTAINER; }
role = role | perms;
}
Test comment
Test