diff --git a/src/lib/commandCenter/searchers/buckets.ts b/src/lib/commandCenter/searchers/buckets.ts index 8e4d45689..6f3781de8 100644 --- a/src/lib/commandCenter/searchers/buckets.ts +++ b/src/lib/commandCenter/searchers/buckets.ts @@ -63,7 +63,7 @@ export const bucketSearcher = (async (query: string) => { icon: 'puzzle' }, { - label: 'File Security', + label: 'File level permissions', async callback() { await goto( `/console/project-${$project.$id}/storage/bucket-${bucket.$id}/settings#file-security` diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/+layout.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/+layout.svelte index 004e4e971..a36904bfd 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/+layout.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/+layout.svelte @@ -163,7 +163,7 @@ icon: 'puzzle' }, { - label: 'Document security', + label: 'Document level permissions', async callback() { await goto( `/console/project-${$project.$id}/databases/database-${$database.$id}/collection-${$collection.$id}/settings#document-security` diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/document-[document]/+page.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/document-[document]/+page.svelte index 0ee809bd9..5186d8dc9 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/document-[document]/+page.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/document-[document]/+page.svelte @@ -83,11 +83,10 @@ {#if $collection.documentSecurity} {#if showPermissionAlert} (showPermissionAlert = false)}> - Document security is enabled + Document level permissions are enabled

- Users will be able to access this document if they have been granted either document or collection permissions. - + Users will be able to access this document if they have been granted + either document or collection level permissions.

{/if} @@ -96,11 +95,11 @@ {/if} {:else} - Document security is disabled + Document level permissions are disabled

- If you want to assign document permissions. Go to Collection settings and - enable document security. Otherwise, only collection permissions will be - used. + If you want to assign different permissions to individual documents. Go to + you collection's settings and enable document level permissions. Otherwise, + all documents in the collection share the same collection level permissions.

{/if} diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/settings/updateSecurity.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/settings/updateSecurity.svelte index a2019cdc4..5bb0673eb 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/settings/updateSecurity.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/settings/updateSecurity.svelte @@ -45,22 +45,23 @@ - Document security + Document level permissions + label="Document level permissions" />

- When document security is enabled, users will be able to access documents for which they - have been granted either document or collection permissions. + When document level permissions are enabled, users will be able to access documents for which they + have been granted either document or collection level permissions.

- If document security is disabled, users can access documents only if they have collection permissions. Document permissions will be ignored. + When document level permissions are disabled, users can only access + documents if they have been granted collection level + permissions. You will not be able to assign different permissions + to individual documents.

diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/wizard/step2.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/wizard/step2.svelte index 01db671ca..dd3c37573 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/wizard/step2.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/wizard/step2.svelte @@ -20,9 +20,9 @@ {#if $collection.documentSecurity}
- Document security is enabled - Users will be able to access this document if they have been granted - either document or collection permissions. + Document level permissions are enabled + Users will be able to access this document if they have been granted + either document or collection level permissions.
@@ -30,9 +30,10 @@
{:else} - Document security is disabled - If you want to assign document permissions, navigate to Collection settings and enable document - security. Otherwise, only collection permissions will be used. + Document level permissions are disabled + If you want to assign different permissions to individual documents. Go to + you collection's settings and enable document level permissions. Otherwise, + all documents in the collection share the same collection level permissions. {/if} diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/+layout.svelte b/src/routes/console/project-[project]/storage/bucket-[bucket]/+layout.svelte index bd199a1a7..e06bc8935 100644 --- a/src/routes/console/project-[project]/storage/bucket-[bucket]/+layout.svelte +++ b/src/routes/console/project-[project]/storage/bucket-[bucket]/+layout.svelte @@ -46,7 +46,7 @@ icon: 'puzzle' }, { - label: 'File security', + label: 'File level permissions', async callback() { await goto( `/console/project-${$project.$id}/storage/bucket-${$bucket.$id}/settings#file-security` diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/create-file/step2.svelte b/src/routes/console/project-[project]/storage/bucket-[bucket]/create-file/step2.svelte index 58363e57d..440147c2c 100644 --- a/src/routes/console/project-[project]/storage/bucket-[bucket]/create-file/step2.svelte +++ b/src/routes/console/project-[project]/storage/bucket-[bucket]/create-file/step2.svelte @@ -21,9 +21,9 @@ {#if $bucket.fileSecurity}
- File security enabled - Users will be able to access this file if they have been granted - either File or Bucket permissions. + File level permissions enabled + Users will be able to access this file if they have been granted + either file or bucket level permissions.
@@ -31,9 +31,10 @@
{:else} - File security disabled - If you want to assign file permissions, navigate to Bucket settings and enable file security. - Otherwise, only Bucket permissions will be used. + File level permissions disabled + If you want to assign different permissions to individual files. Go to + you bucket's settings and enable file level permissions. Otherwise, + all file in the bucket share the same bucket level permissions. {/if} diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/create.svelte b/src/routes/console/project-[project]/storage/bucket-[bucket]/create.svelte index 209f1ded2..b6d3b41c9 100644 --- a/src/routes/console/project-[project]/storage/bucket-[bucket]/create.svelte +++ b/src/routes/console/project-[project]/storage/bucket-[bucket]/create.svelte @@ -82,9 +82,9 @@ {#if $bucket.fileSecurity}
- File security enabled - Users will be able to access this file if they have been granted - either File or Bucket permissions. + File level permissions enabled + Users will be able to access this file if they have been granted + either file or bucket level permissions.
@@ -92,9 +92,10 @@
{:else} - File security disabled - If you want to assign file permissions, navigate to Bucket settings and enable file security. - Otherwise, only Bucket permissions will be used. + File level permissions disabled + If you want to assign different permissions to individual files. Go to + you bucket's settings and enable file level permissions. Otherwise, + all file in the bucket share the same bucket level permissions. {/if} diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/file-[file]/+page.svelte b/src/routes/console/project-[project]/storage/bucket-[bucket]/file-[file]/+page.svelte index a5fa2dd45..fe73cbc50 100644 --- a/src/routes/console/project-[project]/storage/bucket-[bucket]/file-[file]/+page.svelte +++ b/src/routes/console/project-[project]/storage/bucket-[bucket]/file-[file]/+page.svelte @@ -123,10 +123,10 @@ {#if $bucket.fileSecurity} {#if showFileAlert} (showFileAlert = false)}> - File security is enabled + File level permissions are enabled

- Users will be able to access this file if they have been granted either File or Bucket permissions. + Users will be able to access this file if they have been granted + either file or bucket level permissions.

@@ -134,10 +134,11 @@ {:else} - File security is disabled + File level permissions are disabled

- If you want to assign document permissions. Go to Bucket settings and - enable file security. Otherwise, only Bucket permissions will be used. + If you want to assign different permissions to individual files. Go to + you bucket's settings and enable file level permissions. Otherwise, + all files in the bucket share the same bucket level permissions.

{/if} diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/settings/+page.svelte b/src/routes/console/project-[project]/storage/bucket-[bucket]/settings/+page.svelte index d153a39e4..baa48c07f 100644 --- a/src/routes/console/project-[project]/storage/bucket-[bucket]/settings/+page.svelte +++ b/src/routes/console/project-[project]/storage/bucket-[bucket]/settings/+page.svelte @@ -299,22 +299,23 @@
- File security + File level permissions + label="File level permissions" />

- When file security is enabled, users will be able to access files for which - they have been granted either File or Bucket permissions. + When file level permissions are enabled, users will be able to access files for which they + have been granted either file or bucket level permissions.

- If file security is disabled, users can access files only if they have Bucket permissions. File permissions will be ignored.. + When file level permissions are disabled, users can only access + files if they have been granted file level + permissions. You will not be able to assign different permissions + to individual files.