Welcome Guest, Not a member yet? Register   Sign In
Working with user groups
#1

[eluser]pieter dekker[/eluser]
Hi,

I'm building a small CMS system with different kind of users, for example admin, teachers and students. Where admin has the most rights and students the least.

What is the best way to implement, I have a security class which can check to which group the logged in user is with. There are several options:

- Seperate controller for each group
- Differentiate between the groups within the function in the controllers
- ???

In another application I used a seperate controller for each group, but the downside of that solution is the duplication of code. Because several parts are the same for each group.

Has anybody some experience with this?

Kind regards,
Pieter




Theme © iAndrew 2016 - Forum software by © MyBB