1.0.6 • Published 1 year ago

@gravitybv/strapi-plugin-permissions v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Strapi plugin - Permissions

npm version npm downloads License

Installation

  1. Install using npm install @gravitybv/strapi-plugin-permissions in the root of your Strapi project.

Usage

Enable in config/plugins.js:

{
  "permissions": {
    "enabled": true
  }
}

The plugin will automatically create a file in the config/ directory of your Strapi installation. This newly created file is named config/permissions.js and will contain default permissions upon first install.

The permissions in this file will automatically be set upon Strapi bootstrap.

Naming

Please use the prefix plugin:: to target a specific plugin.

Use api:: to target one of your own controllers.

When only specifying the prefix and entity name, without targeting a controller (e.g. api::restaurant or plugin::users-permissions), the plugin will set the permissions for all of the controllers in that entity. To target a specific controller, please use: api::restaurant.restaurant, or plugin::users-permissions.auth.

Typescript

When using in a typescript project add a config to the plugin config:

config/plugins.js

{
  "permissions": {
    "enabled": true,
    "config": {
      "typescript": true
    }
  }
}

License

MIT License

1.0.6

1 year ago

1.0.5

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

3 years ago