Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
OrmAuth ~ Advanced Permissions
  • Hi,

    I have 2 types of users admins and regular users.
    Every user have a specific region. 

    How can I setup the permissions to allow users to view only the posts from their specific region and only the their information ( name , etc. )
    Admins can access everything : users lists, all posts

  • Assuming you don't want anything more granular than this, and assuming you have all posts in a single table, I would use the group. Either add it to the post record, of if your post has a hierarcy (like forums, categories, etc), you can also assign it to those.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion