2010年2月4日星期四

Re: [fw-auth] Re: ACL... but completely different

my recommendation for that would be just change your sql query so it only loads those articles that a user can edit

On Thu, Feb 4, 2010 at 1:26 PM, Laura Dean <ldean@saleamp.com> wrote:

When I am testing a specific article_id, then I can see that an assertion
could work well because I can pass in the article_id and check for access.
But will the custom assertions work for creating the index with only the
articles the user can view?  I am using Zend_Paginator for paging the index,
like such:

$this->paginator = new Zend_Paginator(new
Zend_Paginator_Adapter_DbSelect($select));

So what I was thinking about before was checking the Acl to see if it was
"owner only" and if yes then modifying my $select appropriately... is there
a way to tell if there is a custom assertion assigned to the resource?

--
View this message in context: http://n4.nabble.com/ACL-but-completely-different-tp1299970p1469219.html
Sent from the Zend Auth mailing list archive at Nabble.com.


没有评论: