forked from cory/tildefriends
Cory McWilliams
3464f1d189
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3958 ed5197a5-7fde-0310-b194-c3ffbd925b24
15 lines
449 B
JavaScript
15 lines
449 B
JavaScript
import * as tfrpc from '/tfrpc.js';
|
|
|
|
tfrpc.register(function delete_user(user) {
|
|
return core.deleteUser(user);
|
|
});
|
|
|
|
async function main() {
|
|
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);
|
|
}
|
|
await app.setDocument(utf8Decode(getFile('index.html')).replace('$data', JSON.stringify(data)));
|
|
}
|
|
main(); |