mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Fix: scope checks in more places
This commit is contained in:
1 parent
4b41993b5d
commit
f436a2e632
7 files changed
+8
-7
No files matched your search
@@ -156,7 +156,7 @@
|
||||
href="https://appwrite.io/docs/references/cloud/server-nodejs/users"
|
||||
target="user"
|
||||
allowCreate={$canWriteUsers}
|
||||
on:click={() => showCreateUser.set(true)} />
|
||||
on:click={() => showCreateUser.set($canWriteUsers)} />
|
||||
{/if}
|
||||
</Container>
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
<Empty
|
||||
single
|
||||
allowCreate={$canWriteTeams}
|
||||
on:click={() => ($showCreateTeam = true)}
|
||||
on:click={() => ($showCreateTeam = $canWriteTeams)}
|
||||
href="https://appwrite.io/docs/references/cloud/client-web/teams"
|
||||
target="team" />
|
||||
{/if}
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
href="https://appwrite.io/docs/products/databases/databases"
|
||||
target="database"
|
||||
allowCreate={$canWriteDatabases}
|
||||
on:click={() => (showCreate = true)} />
|
||||
on:click={() => (showCreate = $canWriteDatabases)} />
|
||||
{/if}
|
||||
</Container>
|
||||
|
||||
|
||||
@@ -41,8 +41,9 @@
|
||||
{:else}
|
||||
<Empty
|
||||
single
|
||||
allowCreate={$canWriteCollections}
|
||||
href="https://appwrite.io/docs/products/databases/collections"
|
||||
target="collection"
|
||||
on:click={() => ($showCreate = true)} />
|
||||
on:click={() => ($showCreate = $canWriteCollections)} />
|
||||
{/if}
|
||||
</Container>
|
||||
+1
-1
@@ -126,7 +126,7 @@
|
||||
allowCreate={$canWriteCollections}
|
||||
single
|
||||
target="attribute"
|
||||
on:click={() => (showCreateDropdown = true)}>
|
||||
on:click={() => (showCreateDropdown = $canWriteCollections)}>
|
||||
<div class="u-text-center">
|
||||
<Heading size="7" tag="h2">Create an attribute to get started.</Heading>
|
||||
<p class="body-text-2 u-bold u-margin-block-start-4">
|
||||
|
||||
+1
-1
@@ -201,7 +201,7 @@
|
||||
allowCreate={$canWriteCollections}
|
||||
single
|
||||
target="attribute"
|
||||
on:click={() => (showEmptyCreateDropdown = true)}>
|
||||
on:click={() => (showEmptyCreateDropdown = $canWriteCollections)}>
|
||||
<div class="u-text-center">
|
||||
<Heading size="7" tag="h2">Create your first attribute to get started.</Heading>
|
||||
<p class="body-text-2 u-bold u-margin-block-start-4">
|
||||
|
||||
@@ -73,5 +73,5 @@
|
||||
allowCreate={$canWriteKeys}
|
||||
href="https://appwrite.io/docs/advanced/platform/api-keys"
|
||||
target="API key"
|
||||
on:click={$canWriteKeys ? createApiKey : null} />
|
||||
on:click={createApiKey} />
|
||||
{/if}
|
||||
Reference in new issue
Block a user