JanesCrib / awesomeapp

MIT License
0 stars 0 forks source link

Stuff #2

Open perborgen opened 5 years ago

perborgen commented 5 years ago

Test

perborgen commented 5 years ago

test

perborgen commented 5 years ago
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;
}
perborgen commented 5 years ago

Test comment