Permissions

Daalder uses role/permission pattern for access-role management. Under the hood, we implemented a spatie/laravel-permission library, ensuring that your user privileges will stay safe and well kept.

Roles and permissions are user-specific, which means that regardless of your specific needs, one user has a same set of roles/permissions on every store you implemented within one Daalder application.

Default configuration

During the installation and set up of the Daalder application, a number of built-in roles and permissions will be mounted.

Roles

A fresh Daalder application has two built-in roles:

See the Pionect\Backoffice\Models\User\RoleScopes for further reference on default roles.

Permissions

Beside roles, the fresh Daalder application sets up a number of permissions. Their basic definitions can be found in the Pionect\Backoffice\Models\User\Permission object.

These permissions cover most of the Daalder features, and are written using the following pattern:

const STORE_DISCOUNT = 'store-discount';

The above example defines the permission to store/update a discount model.