drago-ex / project-preset-permission
Overlay of project-preset that adds permissions: menu by privileges, write buttons and database roles.
Package info
github.com/drago-ex/project-preset-permission
Type:drago-tools-resource
pkg:composer/drago-ex/project-preset-permission
dev-main
2026-10-29 18:38 UTC
Requires
- php: >=8.3 <9
- drago-ex/datagrid: ^1.0
- drago-ex/permission: ^1.0
- drago-ex/project-install: ^1.0
- drago-ex/project-permission: ^1.0
- drago-ex/project-preset: ^1.0
- drago-ex/translator: ^4.0
Requires (Dev)
- phpstan/phpstan-nette: ^2.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-29 18:46:01 UTC
README
Overlay of drago-ex/project-preset that adds permissions to the composed project.
Requirements
- PHP >= 8.3, < 9
- Drago Project
- drago-ex/project-preset
Installation
composer require drago-ex/project-preset-permission
Files copied into the project
The files are copied into the project by drago-ex/project-tools,
as set in extra.drago-tools of this package's composer.json.
What it adds
- Permissions (ACL) and role management in the administration.
- The administration menu shows only the items the user may open, and the "Administration" link of the front user menu is shown only to users who may open the dashboard.
- The add, edit and delete buttons of the blog and the static pages are shown only to roles with the write privilege.
- The roles of users come from the database; the web installer gives the administrator the
adminrole and imports the privileges of the packages.
Permission providers
The access rules of the included packages are generated into the project by:
php vendor/bin/drago-commands