I am new to Yii and have 3 projects that all require the structure below. I would like to create something that is flexible and where i can use the architecture for all three projects.
I am currently looking at the rights and users modules and would like to get input from the ‘professionals’ before proceeding.
Any suggestions appreciated.
Regards,
Dennis
Multiple companies can signup
Each company is separate
Each company to maintain own company details
Each company to setup its own users
Each user can have different rights
3 levels within each company like Admin/Manager/Staff
in controller action call function check_access(‘add_manager’)
function check_access will get the logged in user role type and check the privilages table if do not have access it will redirect to the no-access page.
I understand the potential solution you have proposed.
I currently have the yii ‘rights’ module installed with the following tables
Authassignment
Authitem
Authitemchild
Rights
I am trying to understand how this module would for my requirements.
Given that i want to have many companies with the 3 roles in each company, I would like to find something that is already created so i do not have to reinvent the wheel.
I have good exp to work on permission module of xarayawww.xaraya.com framework. and i am not finding it would be difficult for me to work on yii rights module as its looks similar as and general conceptof permission and authentication.
I have nearly 6 yr of exp to work on content management system xaraya, yii.
e.g jetaviation.com is the one of the site i have worked on which implemented same kind of functionality
Please check if i can do any help for your project