⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Showing data based on logged in user



Firenter
  • profile picture
  • Member

Posted 04 August 2012 - 10:03 AM

Hi, I'm want to know if there's a way I could like show data in a CRUD field like I would normally but have it limited to the ones this specific user has access to.
To clarify: a user can create items in a certain category, I want users to be able to see only the items in their category, and not all categories.
Is there a way to do this?

xxaxxo
  • profile picture
  • Member

Posted 05 August 2012 - 06:03 AM

$crud->where() or the add,edit,view _fields is what you need.
I don't know how your system is setuped but after you load the crud you check your user permission and based on them you change the display.