justbetter/statamic-environment-permissions

There is no license information available for the latest version (1.1.0) of this package.

Disable certain permissions on specific environments

1.1.0 2023-06-07 13:05 UTC

This package is auto-updated.

Last update: 2024-04-07 15:08:59 UTC


README

Disable certain permissions on specific environments. This overrides the configured permissions for a user so you can for example always disable blueprint changes.

Installation

composer require justbetter/statamic-environment-permissions

Configuration

Publish the config and change it how you'd like it in config/environment-permissions.php

php artisan vendor:publish --provider="JustBetter\StatamicEnvironmentPermissions\StatamicEnvironmentPermissionsServiceProvider" --tag="config"

Note

This currently only works if your users are stored in the database! A pull request will be accepted to make this work with all user providers.

License

GNU General Public License v3. Please see License File for more information.