我正在建造一个CMS型站点,将有很多行政管理用户。 已为商业界制定了法律。 但是,我们现在想要将习俗ACL逻辑应用到以城市为基础的模式上,城市是行政管理使用者。
For eg: Admin user is from New York. He can view the content related to New York City.
I have lot of queries built with Zend_Db_Select in the models. Now I have change the queries everywhere. Is there a way, I can add the logic ->where( u.city_id = ? , $admin_user_city_id) for each and every query.
提前感谢。
Thanks Venu