zend-acl

Zend_Acl, with roles and permissions stored in database

﹥>﹥吖頭↗ 提交于 2019-12-04 13:15:36
问题 i want to build an ACL system for my application which have the following requirement. Users will be assigned single or multiple role. (Admin, Staff) etc. Role will have permissions.(Send_Invoices, Send_mail, Delete_Invoices, Send_Estimate) etc. User will be assigned custom permission apart from the role it inherits. my database structure for ACL is as follows role: +----------+-------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +----------+-

How should I structure my tree of resources in an ACL?

╄→尐↘猪︶ㄣ 提交于 2019-12-03 21:02:20
问题 Using PHP and Zend_ACL, I want to create an extremely flexible permissions system. I want to be able to assign permissions to all objects of a certain type, as well as to instances of those objects. If a specific instance of an object is queried and it doesn't exist in the resource tree then the permission set for the 'generic' object can be used. My problem is that this needs to nest and I can't figure out a way to do it without multiple inheritance, which Zend_ACL doesn't support. An

Zend Framework: need typical example of ACL

◇◆丶佛笑我妖孽 提交于 2019-12-03 03:55:05
问题 Can some one guide me for typical implementation example of ACL. Like 'admin' can access 'admin' module, 'user' can access 'user module', and guest can access 'open' pages. 回答1: I can paste you my ACL. It consists of three elements: acl.ini, ACL controller plugin (My_Controller_Plugin_Acl) and My_Acl class, and USER table. However it does not deal with modules, but with controllers and actions. Nevertheless it may give you some general idea about ACL. My use of ACL is based on the one in a

Zend Framework: need typical example of ACL

戏子无情 提交于 2019-12-02 18:11:50
Can some one guide me for typical implementation example of ACL. Like 'admin' can access 'admin' module, 'user' can access 'user module', and guest can access 'open' pages. Marcin I can paste you my ACL. It consists of three elements: acl.ini, ACL controller plugin (My_Controller_Plugin_Acl) and My_Acl class, and USER table. However it does not deal with modules, but with controllers and actions. Nevertheless it may give you some general idea about ACL. My use of ACL is based on the one in a book called "Zend Framework in Action". USER table (privilege field is used for ACL): CREATE TABLE IF

Zend Navigation and RBAC

扶醉桌前 提交于 2019-12-01 00:37:21
I am developing a ZF2 based site. I have a main navigation which stays same regardless of the visitor/user status. Need to add another component/nav, which will depend on the user's status and role. For a visitor the items will be Register Login EN (Actually a drop-down, with other available language) For a logged-in normal user, it will display Profile Logout EN (Language selector as mentioned above) And for some users with specific roles/permission there will be additional items I want to use RBAC, as ACL seems bloated, and also just to check if the current logged in user/role has additional

Zend Navigation and RBAC

China☆狼群 提交于 2019-11-30 19:05:08
问题 I am developing a ZF2 based site. I have a main navigation which stays same regardless of the visitor/user status. Need to add another component/nav, which will depend on the user's status and role. For a visitor the items will be Register Login EN (Actually a drop-down, with other available language) For a logged-in normal user, it will display Profile Logout EN (Language selector as mentioned above) And for some users with specific roles/permission there will be additional items I want to

Does Zend ACL suit my needs?

人盡茶涼 提交于 2019-11-30 02:24:00
I have based my application upon the Zend Framework. I am using Zend_Auth for authentication, but I'm not sure if Zend_Acl will work for me because, frankly, the examples I've seen are either too simplistic for my needs or confuse me. I'm thinking of elements in my application as Resources and these Resources can have have Privileges. Roles containing Resource Privileges are dynamically defined assigned to users. I'm storing this information in normalized tables. Users have a Role A Role can have multiple Resources Resources can have multiple Privileges Roles are really just collections of

Does Zend ACL suit my needs?

牧云@^-^@ 提交于 2019-11-28 23:17:50
问题 I have based my application upon the Zend Framework. I am using Zend_Auth for authentication, but I'm not sure if Zend_Acl will work for me because, frankly, the examples I've seen are either too simplistic for my needs or confuse me. I'm thinking of elements in my application as Resources and these Resources can have have Privileges. Roles containing Resource Privileges are dynamically defined assigned to users. I'm storing this information in normalized tables. Users have a Role A Role can

Duplicate DB sessions created upon Zend_Auth login

本秂侑毒 提交于 2019-11-28 11:29:46
问题 I must be doing something wrong. I can't seem to find the answer to my problem anywhere on the Web, and this generally means that the solution is so simple that no one needs an answer on it. I am using a database to store my session. I set it up in my bootstrap like this: protected function _initDBSessions(){ $resource = $this->getPluginResource('db'); //from config.ini? $db = $resource->getOptions(); $adapter = new Zend_Db_Adapter_Pdo_Mysql($db["params"]); Zend_Db_Table_Abstract:

Practical Zend_ACL + Zend_Auth implementation and best practices

可紊 提交于 2019-11-27 05:51:12
Context: My questions pertain to a forum I'm developing pretty much exactly like SO, where there are: guests who have access to view threads but can't reply or vote members who, with enough rep, can edit/vote others threads, and by default they can reply and have the same privileges as guests admins who can pretty much do anything I would want this ACL to be applied site-wide, and by default deny all resources. I read the basics of using Zend_Acl - in that you basically create roles ( guest, member, admin ) and either deny or allow resources ( controllers, methods ) to those roles. The