mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: roles
This commit is contained in:
@@ -23,6 +23,7 @@ export const canWriteCollections = derived(scopes, ($scopes) =>
|
||||
$scopes.includes('collections.write')
|
||||
);
|
||||
export const canWriteSites = derived(scopes, ($scopes) => $scopes.includes('sites.write'));
|
||||
export const canWriteDomains = derived(scopes, ($scopes) => $scopes.includes('domains.write')); //TODO: check if correct
|
||||
|
||||
export const canWriteDocuments = derived(scopes, ($scopes) => $scopes.includes('documents.write'));
|
||||
export const canWriteExecutions = derived(scopes, ($scopes) =>
|
||||
|
||||
@@ -41,11 +41,6 @@
|
||||
]);
|
||||
|
||||
$updateCommandGroupRanks({ sites: 1000 });
|
||||
|
||||
// TODO: remove
|
||||
const TMPSITEROLES = true;
|
||||
|
||||
$: console.log(data.siteList);
|
||||
</script>
|
||||
|
||||
<Container>
|
||||
@@ -79,7 +74,7 @@
|
||||
{:else}
|
||||
<Empty
|
||||
single
|
||||
allowCreate={TMPSITEROLES}
|
||||
allowCreate={$canWriteSites}
|
||||
href="https://appwrite.io/docs/products/sites"
|
||||
description="Deploy, manage, and scale your web applications effortlessly with Sites. "
|
||||
target="site"
|
||||
|
||||
-1
@@ -104,7 +104,6 @@
|
||||
? selectedFramework.adapters[site.adapter]
|
||||
: frameworks[0].adapters[site.adapter];
|
||||
|
||||
$: console.log(selectedFramework, frameworkDataAdapter);
|
||||
//TODO: fix after backend type is fixed
|
||||
$: if (selectedFramework?.adapters?.length <= 1 || !selectedFramework?.adapters?.ssr?.key) {
|
||||
adapter = Adapter.Static;
|
||||
|
||||
Reference in New Issue
Block a user