Download the PHP package sunlab/wn-permissions-plugin without Composer
On this page you can find all versions of the php package sunlab/wn-permissions-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sunlab/wn-permissions-plugin
More information about sunlab/wn-permissions-plugin
Files in sunlab/wn-permissions-plugin
Package wn-permissions-plugin
Short Description Frontend User's permissions plugin for WinterCMS
License MIT
Homepage https://github.com/sunlabdev/wn-permissions-plugin
Informations about the package wn-permissions-plugin
Permissions
Front-end user permissions management.
Composer installation
Requirements
This plugin requires the Winter.User Plugin.
Creating Permissions
In the backend, navigate to Winter "Users" menu, on the left side there should be an open lock icon with the name "Permissions". Click this, and it will take you to the list of permission.
- Click "New Permission" to get to a form where you can enter information about a new permission you would like to create.
- Click on a permission in the list to manage existing permissions.
Managing User Permissions
In the backend, navigate to Winter "Users" menu, now on a User model updating page, you can manage his permission at his user-level.
Managing Group Permissions
In the backend, navigate to Winter "Users" menu, into the side menu, select Groups
.
Now on a Group
model updating page,
you can manage the permissions that will be granted for every User
in that group.
Using Permissions in your own development
Since every user model is now extended with the hasUserPermission
method,
it is available in both twig and backend php i.e.
For Twig
For Backend