Took another whack at permissions.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3958 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-08-14 01:46:11 +00:00
parent fc9c3982c2
commit 3464f1d189
7 changed files with 54 additions and 50 deletions

View File

@ -5,7 +5,8 @@ tfrpc.register(function delete_user(user) {
});
async function main() {
let data = {users: {}};
let data = {users: {}, granted: await core.allPermissionsGranted()};
print(JSON.stringify(data));
for (let user of await core.users()) {
data.users[user] = await core.permissionsForUser(user);
}