create-rsc-kit 0.43.0 → 0.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/templates.js +1 -1
- package/package.json +1 -1
package/dist/templates.js
CHANGED
|
@@ -719,7 +719,7 @@ ${o.host === 'laravel'
|
|
|
719
719
|
again in each tab's page, where a tab switch replaces it with the page's
|
|
720
720
|
fallback. Any page under the layout can refresh it by name.
|
|
721
721
|
${o.host === 'laravel' || o.backend
|
|
722
|
-
? `- **Authorisation lives in the backend**, in the function the call reaches${o.host === 'laravel' ? ' - \`#[
|
|
722
|
+
? `- **Authorisation lives in the backend**, in the function the call reaches${o.host === 'laravel' ? ' - \`#[Middleware(\'auth\')]\`, \`#[Authorize]\`, a policy' : ' - its guard or the handler'} - never only in the component that shows the button.`
|
|
723
723
|
: `- **Every action and query is built from the client in \`${o.sourceDir}/server/client.ts\`**,
|
|
724
724
|
and authorisation is its \`.use()\` middleware - never a check written in a
|
|
725
725
|
component, and never a bare \`'use server'\` function for anything that writes.`}
|