justbetter / statamic-veto
Statamic addon for blacklisting permissions.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/justbetter/statamic-veto
Requires
- php: ^8.3
- laravel/framework: ^12.0
- statamic/cms: ^6.0
Requires (Dev)
- larastan/larastan: ^3.4
- laravel/pint: ^1.22
- orchestra/testbench: ^10.3
- pestphp/pest: ^3.7
- phpstan/phpstan-mockery: ^2.0
- phpunit/phpunit: ^11.5
This package is auto-updated.
Last update: 2026-02-04 09:03:52 UTC
README
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:
composer require justbetter/statamic-veto
Publish the configuration file:
php artisan vendor:publish --provider="JustBetter\Veto\ServiceProvider" --tag="config"
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:
return [ 'permissions' => [ 'global' => 'edit all globals', 'entry' => 'edit all entries', 'term' => 'edit all terms', ], ];
Quality
To ensure the quality of this package, run the following command:
composer quality
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
License
The MIT License (MIT). Please see License File for more information.