« Return to Thread: Restricting display of links to non-authorized pages in view scripts- how to?

Restricting display of links to non-authorized pages in view scripts- how to?

by bytte :: Rate this Message:

Reply to Author | View in Thread

I managed to set up authentication through Zend_Auth and access control through Zend_Acl. This works without any problem. However, I'd like to take things one step further.

My view scripts sometimes display links to pages that are not accessible by the logged in user, because that user does not have the proper rights to view that page. Think of an "edit" link next to a blog article. If only the author of the article is allowed (via Zend_Acl) to edit the article, then it makes no sense to display the "edit" link to other users as well, as clicking on the link will only send them to a "not authorised" page.

Is there a convenient way of dealing with this problem? I'm sure it's a common request so I was hoping someone could help me with it.

Thanks in advance.

 « Return to Thread: Restricting display of links to non-authorized pages in view scripts- how to?