Search by

drago-ex / project-preset-permission

accgit

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

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-10-29 18:38 UTC

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.

PHP version Coding Style

Requirements

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 admin role 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