App roles
SU (Super User)
Company roles
Manager (manager)
Operations Manager (operationsManager)
Manager Admin (managerAdmin)
Accounting Expert (accountingExpert)
Accounting Expert Admin (accountingExpertAdmin)
Accounting Assistant (accountingAssistant)
Sales Agent (salesAgent)
Permissions
| Permission / Role | operationsManager | managerAdmin | manager | accountingExpertAdmin | accountingExpert | accountingAssistant | salesAgent |
| EN | General Manager & Admin | Executive Manager | Operational Manager | Financial Manager & Admin | Accounting Expert | Accounting Assistant | Sales Agent |
| RO | Director general & Admin | Director executiv | Director operațional | Director financiar & Admin | Expert contabil | Asistent contabil | Agent de vânzări |
| Company data – view (companyView) | x | x | x | x | x | x | x |
| Company data – create / update / delete (companyEdit) | x | x | – | x | – | – | – |
| Business Operations – clients, suppliers, invoice, cashing & payment (businessOperations) | x | x | x | x | x | x | x |
| Basic accounting (basicAccounting) | x | – | – | x | x | x | – |
| Expert accounting – financial closings, statements sign & submit (expertAccounting) | x | – | – | x | x | – | – |
| Billing – view, update data (billing) | x | x | – | x | – | – | – |
| Reporting – management, financial (reporting) | x | x | x | x | x | – | – |
| Importing (to be detailed…) (importing) | x | ? | – | x | x | – | – |
Init
În *\main-local.php trebuie să NU existe nimic legat de “authmanager” sau “rbac” (aceste configurări sunt aceleaşi pt. orice env., în *\main.php).
> yii migrate (max_rbac_init, user_company_role) > yii rbac/init
Quick role assign
> yii rbac/assign role userId companyId
Pe linux :
> sudo php yii rbac/assign role userId companyId
Categories: Uncategorized |
Leave a Reply
[TOP]