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.
- Statamic v6
- Laravel v12
- PHP 8.3+
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.
Install the package via Composer:
composer require justbetter/statamic-vetoPublish the configuration file:
php artisan vendor:publish --provider="JustBetter\Veto\ServiceProvider" --tag="config"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.
You can customize the permission names in the published configuration file at config/statamic-veto.php:
return [
'permissions' => [
'global' => 'edit all globals',
'entry' => 'edit all entries',
'term' => 'edit all terms',
],
];To ensure the quality of this package, run the following command:
composer qualityThis 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
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.