Jump to content

PHP / MySQL Permissions Design Help


MRGRIM

Recommended Posts

I am trying to design a fairly flexible PHP company portal. What I am struggling with at the moment is how to create the permissions. The site will be made up ‘modules’  e.g. messages, staff, products etc.

How would you suggest I have a range or permissions e.g. add permissions on messages, but deny read access (as unlikely as that scenario sounds) but then also have a different set of permissions for the other modules?

I was thinking along the lines of roles?

Link to comment
Share on other sites

I've been thinking about this myself, the two ideas I've come up with are to use a database for individual users/permissions;

id, userID, module, premissionLevel,

or grouping them into groups;

access level: user (read only), editor (create, manage own created entrys), manager (manage any entry), admin (manage users *)

so a "user" could be a editor and create entrys but not a user and read them.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...