Questions tagged [zend-acl]

Zend ACL is an Access Control List class in the Zend Framework, an open source, object-oriented web application framework implemented in PHP 5 and licensed under the New BSD License.

Zend_Acl provides a lightweight and flexible access control list (ACL) implementation for privileges management. In general, an application may utilize such ACL's to control access to certain protected objects by other requesting objects.

For the purposes of this documentation:

a resource is an object to which access is controlled.
a role is an object that may request access to a Resource.

Put simply, roles request access to resources. For example, if a parking attendant requests access to a car, then the parking attendant is the requesting role, and the car is the resource, since access to the car may not be granted to everyone.

Through the specification and use of an ACL, an application may control how roles are granted access to resources.

Questions tagged with zend-acl should show they are implementing the Zend_Acl class from the Zend Framework.

To read more visit:
http://framework.zend.com/manual/en/zend.acl.introduction.html

144 questions
3
votes
1 answer

displaying page not found error with zend acl

whenever a controller is called if it is not registered in zend acl then we ususally get erro r like this Fatal error: Uncaught exception 'Zend_Acl_Exception' with message 'Resource 'hsfasfdadsf' not found' in…
S L
  • 14,262
  • 17
  • 77
  • 116
3
votes
1 answer

Structuring Zend_Acl and CRUD with Parent/Child Relationships

I am wondering how should I structure my ACL for CRUD with Parent/Child Relations. Eg. Projects have TodoLists. TodoLists have Todos There are various controller actions for…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
3
votes
2 answers

PHP MySQL Zend-ACL - Graphically display ACL:

I have one MySQL DB table like the following, the resources table: +----+-----------+------------+ | id | name | type | +----+-----------+------------+ | 1 | guest | user | | 2 | member | user | | 3 | moderator |…
Scoobler
  • 9,696
  • 4
  • 36
  • 51
3
votes
2 answers

Zend Navigation - various navigation blocks

I have a navigation.xml file:
DarkLeafyGreen
  • 69,338
  • 131
  • 383
  • 601
3
votes
2 answers

How to build an ACL Assertion for a variable value in Zend Framework 2?

I have a simple ACL configures in an acl.global.php like this: return [ 'acl' => [ 'roles' => [ 'guest' => null, 'member' => 'guest', 'admin' => 'member' ], 'resources' => [ …
automatix
  • 14,018
  • 26
  • 105
  • 230
3
votes
3 answers

Zend_Acl For Specific Parts Of The Page

I know how to use Zend_Acl to allow certain resources to certain usergroups but how do i use it to allow only specific parts of the page to be shown? For example I have a button to delete a post via AJAX on the page but i only want to show the…
BRampersad
  • 862
  • 1
  • 12
  • 25
3
votes
4 answers

Zend_ACL Limitation?

I'm contemplating using Zend_ACL. However, to me it looks like you create roles and then give those roles permissions to controllers and actions they can or cannot access. However, to me that seems fairly limited. I have created a user permission…
azz0r
  • 3,283
  • 7
  • 42
  • 85
3
votes
3 answers

Giving Zend Navigation Pages Multiple ACL Privileges

I'm using Zend_Navigation and am trying to integrate it with Zend_Acl. Each page in the navigation has a privilege attribute. What I can't determine is how to define multiple privileges for a single page. Use case: A page that is for managing…
Sonny
  • 8,204
  • 7
  • 63
  • 134
3
votes
4 answers

How to redirect to a different controller action in Zend

I am creating a simple website where users can sign up, and then sign in and add text articles. Without signing in, a visitor will have the role of a guest, and will only be able to view articles. I am doing this as an exercise in Zend framework 1,…
Sonu Jha
  • 719
  • 3
  • 13
  • 23
3
votes
2 answers

How to avoid bloat in Zend_Navigation?

I've been researching using Zend_Navigation in combination with Zend_Acl to manage navigation and access permissions in a new app I'm working on. One thing that really bothers me, is the examples I have seen end up making an enormous XML file that…
Jeremy Harris
  • 24,318
  • 13
  • 79
  • 133
2
votes
1 answer

Display error message after using isAllowed

For example I have this implementation of the assert method in the class derived from Zend_Acl_Assert_Interface. function assert( Zend_Acl $acl, Zend_Acl_Role_Interface $user = null, Zend_Acl_Resource_Interface $item = null, …
2
votes
2 answers

is it possible to set permission in zend acl to action level insted of controller level

i am using zend framework , in my site i have two types of users , guest and loggeduser , i have a controller called . books , in there i have 3 actions . add , edit and delete , in my zend acl i give the permissions to books controller only to…
Kanishka Panamaldeniya
  • 17,302
  • 31
  • 123
  • 193
2
votes
1 answer

ZF Zend Form Validator to check if user is allowed to change field?

is it possible to write a validator for a zend form, which checks if the user has the right to change a form field? Means the user sees the field, but if tries even without permission (no acl right), he receives an error message? subsequent this…
Manuel
  • 9,112
  • 13
  • 70
  • 110
2
votes
2 answers

Zend ACL in models vs Zend Navigation

I like the idea of binding ACL to models like described here: http://weierophinney.net/matthew/archives/201-Applying-ACLs-to-Models.html But how can I combine this with Zend Navigation? When rendering the sitemap, I'd have to instantiate all the…
takeshin
  • 49,108
  • 32
  • 120
  • 164
2
votes
1 answer

Zend Acl - Modules, Controllers, Actions and Models

I spent the day looking for tutorials and answers about how to implement Zend_Acl here at SO as in other sites. And I got a headache. :X I saw people using it to allow or disallow access to certain controllers/actions and others saying that this way…
1
2
3
9 10