0
私はZend_ACLセットアップ(これに基づいて:Zend Framework: need typical example of ACL)を持っています。Zend Framework 1 ini config for ACL
そして私はアクセス権を設定するための設定ファイルを持っていますが、私の問題は、私は特定のcontroller.actionに複数のロールへのアクセス権を与えない方法
; roles
acl.roles.guest = null
acl.roles.admin = null
acl.roles.company = null
acl.roles.user = null
acl.roles.super_admin = null
; resources
acl.resources.deny.all.all = guest
acl.resources.allow.index.all = guest
acl.resources.allow.index.all = company
あるので、問題はこの1つである:
acl.resources.allow.index.all = guest
acl.resources.allow.index.all = company
私の質問は、これを設定して、複数のロールがアクセスできるようにする方法です。
$ this-> deny(multipleRoles、$ controller、$ action)に$を追加するのを忘れました。 – Uffo
私はそれを修正し、それをテストした、それは動作します、ありがとう! – Uffo
それがあなたのために働いたことを知ってよかった! – ksoni