So I have an action which I need multiple permissions to have access to.
(for example manageUsers (admin) and manageCompanyUsers (company manager))
access behaviour in controller has rule like:
'allow' => true,
'actions' => ['index'],
'roles' => [
'manageUsers',
'manageCompanyUsers'
],
'roleParams' => ['company' => 'some id']
1) how do I pass different params for different roles in it? (with this code it passes company to manageCompanyUsers anyway)
2) how can I make sure that if manageUsers is a child of manageCompanyUsers and user has manageUsers assigned directly to not trigger manageCompanyUsers rules (it triggers now)