Download the PHP package justbetter/statamic-veto without Composer
On this page you can find all versions of the php package justbetter/statamic-veto. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download justbetter/statamic-veto
More information about justbetter/statamic-veto
Files in justbetter/statamic-veto
Package statamic-veto
Short Description Statamic addon for blacklisting permissions.
License
Informations about the package statamic-veto
Statamic Veto
A Statamic addon that adds permissions to grant roles the ability to edit all globals, terms, or entries, where it ussually is specific for every type of global, taxonomy or collection.
Requirements
- Statamic v6
- Laravel v12
- PHP 8.3+
Features
This package adds three powerful permissions to your Statamic roles:
- Edit all globals - Grant a role permission to edit all global sets
- Edit all terms - Grant a role permission to edit all taxonomy terms
- Edit all entries - Grant a role permission to edit all entries across collections
These permissions work alongside Statamic's existing permission system, allowing you to give roles blanket access to edit all content of a specific type without needing to configure permissions for each individual item.
Installation
Install the package via Composer:
Publish the configuration file:
Usage
Once installed, three new permissions become available when editing roles in the Statamic Control Panel:
edit all globals- Allows editing of all global setsedit all terms- Allows editing of all taxonomy termsedit all entries- Allows editing of all entries
Simply assign these permissions to any role, and users with that role will gain the corresponding access. These permissions work in addition to Statamic's existing permission system, so users will have access if they either have the veto permission or the standard Statamic permission for a specific item.
Configuration
You can customize the permission names in the published configuration file at config/statamic-veto.php:
Quality
To ensure the quality of this package, run the following command:
This will execute three tasks:
- Makes sure all tests are passed
- Checks for any issues using static code analysis
- Checks if the code is correctly formatted
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Bob Wezelman
- All Contributors
License
The MIT License (MIT). Please see License File for more information.