Welcome Guest, Not a member yet? Register   Sign In
User permissions
#1

[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.
?




Theme © iAndrew 2016 - Forum software by © MyBB