![]() |
User permissions - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: User permissions (/showthread.php?tid=47853) |
User permissions - El Forum - 12-25-2011 [eluser]miauksius[/eluser] Hi there First of all - Marry Christmas everyone! Now, I'm making a user sign in/up forms, and while they aren't working, I should plan user permission system. So, what I is to be able to create as many user groups as I want, and I want to set permissions to those groups. Example: Moderator - May ban users - May modify topics and posts in his own forum Global moderator - May ban users - May modify topics and posts in all forums Those, who write blog articles - May write/edit/delete any blog article Admin - May ban users - May modify topics and posts in all forums - Can modify forums - Can create new group, or delete/modify existing one - And much more BUT, for example, I have this guy, who writes articles to blog and I want him to be moderator of one of the forums. So he belongs to two groups, in that case my user table should look like this: Users - ID - Password - Group1 - Group2 - Etc. ? |