Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Role Presets
fluxfiles/laravel
cursor
s3
upload
laravel
file-manager
r2
fluxfiles

ACL role presets (docs/design/ACL-ROLE-PRESETS-DESIGN.md): a mint-time-only role claim-bundle preset — four roles, viewer/editor/admin/superadmin (superadmin shares admin's claim bundle but is the one role documented as safe to combine with an empty prefix), structurally parallel to the existing...

Install
php artisan boost:add-skill fluxfiles/laravel

Save this content to: .cursor/rules/role-presets.md

**ACL role presets** (`docs/design/ACL-ROLE-PRESETS-DESIGN.md`): a mint-time-only `role` claim-bundle preset — **four roles**, `viewer`/`editor`/`admin`/`superadmin` (`superadmin` shares `admin`'s claim bundle but is the one role documented as safe to combine with an empty `prefix`), structurally parallel to the existing `edition` preset — shipped across all the token builders (`packages/core/embed.php`'s `fluxfiles_role_preset()`/`fluxfiles_apply_role_preset()`, `packages/node/src/token.ts`'s `ROLE_PRESETS`, Laravel's `FluxFilesManager.php`, WordPress's `FluxFilesPlugin.php`, and later the Python SDK) in commit `70f1cea` (2026-09-01). Same-day fix (`d880b98` core/Laravel/WordPress, `fb7c8a2` Node) for a `viewer`/`editor` bug: the presets originally omitted `allow_extract`/`allow_chmod`, assuming an absent claim decodes false, but `Claims::fromJwtPayload` defaults those two specifically to **true** when absent — so a minted `viewer`/`editor` token unintentionally carried `allow_chmod=true`, letting a read-only/contributor role chmod on an SFTP disk. Fixed by setting both explicitly in every builder. No new server-side state and no new JWT claim: `role` only expands to *existing* claims at mint time (never touches `prefix`/`disks`/`userId`/quota/rate-limit/BYO-embed-URL claims, and never implies any paid-module `allow_<x>` claim). WordPress maps WP capabilities to roles; `admin` needs `manage_options` or `delete_others_posts` (since wordpress-v0.2.54 — `delete_posts` alone used to mint admin for Contributors/Authors).

ACL role presets (docs/design/ACL-ROLE-PRESETS-DESIGN.md): a mint-time-only role claim-bundle preset — four roles, viewer/editor/admin/superadmin (superadmin shares admin's claim bundle but is the one role documented as safe to combine with an empty prefix), structurally parallel to the existing edition preset — shipped across all the token builders (packages/core/embed.php's fluxfiles_role_preset()/fluxfiles_apply_role_preset(), packages/node/src/token.ts's ROLE_PRESETS, Laravel's FluxFilesManager.php, WordPress's FluxFilesPlugin.php, and later the Python SDK) in commit 70f1cea (2026-09-01). Same-day fix (d880b98 core/Laravel/WordPress, fb7c8a2 Node) for a viewer/editor bug: the presets originally omitted allow_extract/allow_chmod, assuming an absent claim decodes false, but Claims::fromJwtPayload defaults those two specifically to true when absent — so a minted viewer/editor token unintentionally carried allow_chmod=true, letting a read-only/contributor role chmod on an SFTP disk. Fixed by setting both explicitly in every builder. No new server-side state and no new JWT claim: role only expands to existing claims at mint time (never touches prefix/disks/userId/quota/rate-limit/BYO-embed-URL claims, and never implies any paid-module allow_<x> claim). WordPress maps WP capabilities to roles; admin needs manage_options or delete_others_posts (since wordpress-v0.2.54 — delete_posts alone used to mint admin for Contributors/Authors).

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console