User's rights

Each application can contain a set of permissions that allow the administrator to allow or deny individual users access to individual Retailys features and specific applications.

User rights are set in the Init Controller of the application

Rights values are calculated by binary sum of values. For simplicity, each operation has its value.

ActionValue

Heredity

1

Show

2

Insert

4

Update

8

Delete

16

Execute

32

Therefore, if we want the application to have the right to view and edit sales channels, for example, then we set the right as follows with a value of 10 (sum of 2 and 8).

   [
                        'name' => 'System.Channels',
                        'crud' => 10,
                    ],

Example of application rights:

'rights' => [
                    [
                        'name' => 'System.Channels',
                        'crud' => 2,
                    ],
                    [
                        'name' => 'System.Content',
                        'crud' => 46,
                    ],
                    [
                        'name' => 'System.Settings.Companies',
                        'crud' => 2,
                    ],
                    [
                        'name' => 'System.Settings.Stores',
                        'crud' => 2,
                    ],
                    [
                        'name' => 'System.Orders',
                        'crud' => 46,
                    ],
                ],

System

The main administrator (usually the founder of the account in the Retailys system) has the general right of System. The logged in user has access to all sections of the system and settings, regardless of other set rights. It can add additional administrators and remove rights from current administrators.

System.Channels

Access to all channels.

System.Content

Possibility to edit content - products, categories, variants, ...

System.People

Allows editing or creating users.

System.Orders

Authorization to the orders section and its subsections. According to the set operations, it enables the manipulation of orders. When setting up any operation automatically, these operations are also available in subsections

To view orders, you must also have at least read permission to the company and warehouse (System.Settings.Companies, System.Settings.Stores)

System.Orders.Overview

Permissions only to the order overview subsection

System.Orders.Notifications

Permissions only to the notification subsection

System.Orders.Statuses

Permissions only to the status subsection (user statuses)

System.Marketing

Access to the Marketing section.

System.Invoices

Access to the section of own documents and invoices for the use of the Retailys system.

System.Settings

Access to all Retailys and administration system settings

System.Settings.Companies

Access to the settings of all companies, visibility of orders of all companies.

System.Settings.Stores

Access to all warehouses.

Last updated