开发者

acl for edit post page?

i wonder if i shld use an ACL rule (PHP/Zend_Acl in my case) for something as small as a edit post page? i guess the criteria to allow users to edit a post will be

  • owner of post
  • editors/moderators/admin

the question will be if yes (to use acl), how can i define it (i am using Zend_Acl but if u give me some code example, i might be able to translate it).

acl's i think will generally be def开发者_StackOverflow中文版ined at application start/bootstrap. in this case, its partially dynamic as in i must chk against the logged in user.

or will a simple if else suffice?


i think its called Assertions

  • Dynamic Assertions in Zend Framework
  • Docs: Assertions
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜