diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-17 22:39:33 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-17 22:39:33 +0000 |
commit | b37047ff557c88becd662bd6622bf27f7a9a78f2 (patch) | |
tree | bf1fb40207030d4f92afa3b510c9504e4769bf52 /themes/default/js | |
parent | fe396410894f9fcf430e31216312f70db800d96e (diff) |
Add Item_Model::viewable() which we can use to restrict any query to
just items viewable by the active user. Ie:
ORM::factory("item")
->where("name", "foo")
->find_all()
Would get all items with the name "foo".
ORM::factory("item")
->viewable()
->where("name", "foo")
->find_all()
Restricts it to just the set of items that the user is allowed to see.
Diffstat (limited to 'themes/default/js')
0 files changed, 0 insertions, 0 deletions