[eluser]jaume[/eluser]
Hi all! :coolsmile:
I've been reading and searching for some time this great forum pages and solved most of my questions... But there is one topic that keeps me from using CI in clients apps...
I've made webs for small towns where every association in it has it's own "miniweb" in it, and every association may have more than one user with different access levels to different parts of their minisite... So I need validation on a per page basis.
Until now I've used a table where every row is a user and every column is a section of the site, having different levels of access.
Let me use a small example:
user.....homepage.....news.....faq.....calendar
john..............3.................3...........3.............3
pete..............3.................1...........1.............2
alex..............1.................2...........2.............2
So, as you can see, they don't belong all to a level alone, but to different access levels depending on the section.
The apps I've found let me say jonh has level 3 for everything, alex has level 2, etc... But not use levels for single sections.
Also, we are talking of more than 50 users and 30 sections, so a config file would not be a good option...
So, am I the only one using this approach? It makes it really easy to control access checking the access level on entering every back-end page like "if level is 3 for this page show delete button" or "if level is 2 validation of article is pending for this author".
- Any app working like that that I missed?
- Or suggestion to load a table from a DB into a matrix and keep it as a session var to check in every page of the back-end?
Thanks in advance!
Jaume.