Skip to content

Commit e530e6a

Browse files
committed
Remove unused is_editor api from example.
1 parent d27b20e commit e530e6a

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

examples/blog/traildepot/config.textproto

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,3 @@ record_apis: [
4545
acl_world: [READ]
4646
}
4747
]
48-
query_apis: [
49-
{
50-
name: "is_editor"
51-
virtual_table_name: "_is_editor"
52-
params: [
53-
{
54-
name: "user"
55-
type: BLOB
56-
}
57-
]
58-
acl: WORLD
59-
}
60-
]

examples/blog/web/src/lib/client.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,3 @@ export const $client = computed([], () =>
2626
});
2727
}),
2828
);
29-
30-
// Alternatively, one could use the "is_editor" query API to determine a user's capabilities.
31-
//
32-
// async function isEditor(userId: string): Promise<boolean> {
33-
// const response = await fetch(`${HOST}/api/query/v1/is_editor?user=${userId}`);
34-
// if (!response.ok) {
35-
// return false;
36-
// }
37-
//
38-
// const json = await response.json();
39-
// return json[0]["is_editor"] > 0;
40-
// }

0 commit comments

Comments
 (0)