Member Permissions
Results 1 to 2 of 2

Thread: Member Permissions

  1. #1
    Senior Member
    Join Date
    Apr 2005

    Member Permissions

    I have a member table


    I now want to give users different permissions. All members will not receive the ability to post in my forum etc But I want some to be able to post news, others updates some both othes I want to be able to edit members etc there's about 8 different functions so far I can think of and all members will may have different combination.

    How can I set this up?

  2. #2
    PHP Witch laserlight's Avatar
    Join Date
    Apr 2003
    There are various ways of approaching this, depending on your exact requirements. For example, you could create a table of functionalities that require access control, e.g.,
    id | name
     1 | news
     2 | members
     3 | forum
    and then create a join table for the permissions granted, e.g.,
    member_id | functionality_id | access
            1 |                1 |      1 (member #1 can read the news)
            2 |                1 |      2 (member #2 can read and update the news)
            2 |                2 |      2 (member #2 can read and update the member list)
    Use Bazaar for your version control system
    Read the PHP Spellbook
    Learn How To Ask Questions The Smart Way

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts