forked from cory/tildefriends
Fix some obvious things now that the RPC is slightly better.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3957 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@@ -5,9 +5,10 @@ tfrpc.register(function delete_user(user) {
|
||||
});
|
||||
|
||||
async function main() {
|
||||
let data = {
|
||||
users: await core.users(),
|
||||
};
|
||||
let data = {users: {}};
|
||||
for (let user of await core.users()) {
|
||||
data.users[user] = await core.permissionsForUser(user);
|
||||
}
|
||||
await app.setDocument(utf8Decode(getFile('index.html')).replace('$data', JSON.stringify(data)));
|
||||
}
|
||||
main();
|
||||
Reference in New Issue
Block a user