diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts index b48fc321..c2307fa1 100644 --- a/packages/cli/src/index.ts +++ b/packages/cli/src/index.ts @@ -50,7 +50,7 @@ function createProgram() { .description( `${colors.bold.blue( 'ΞΆ', - )} ZenStack is the data layer for modern TypeScript apps.\n\nDocumentation: https://zenstack.dev/docs/3.x`, + )} ZenStack is the modern data layer for TypeScript apps.\n\nDocumentation: https://zenstack.dev/docs`, ) .showHelpAfterError() .showSuggestionAfterError(); diff --git a/packages/plugins/policy/plugin.zmodel b/packages/plugins/policy/plugin.zmodel index ae5e11cf..193f5f33 100644 --- a/packages/plugins/policy/plugin.zmodel +++ b/packages/plugins/policy/plugin.zmodel @@ -33,9 +33,9 @@ attribute @@deny(_ operation: String @@@completionHint(["'create'", "'read'", "' // attribute @deny(_ operation: String @@@completionHint(["'create'", "'read'", "'update'", "'delete'", "'all'"]), _ condition: Boolean) /** - * Checks if the current user can perform the given operation on the given field. + * Delegates the access control decision to a relation. Only to-one relations are supported. * - * @param field: The field to check access for + * @param field: The relation field to delegate to. * @param operation: The operation to check access for. Can be "read", "create", "update", "post-update", or "delete". If the operation is not provided, * it defaults the operation of the containing policy rule. */