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
1
vote
1 answer

Zend: ACL logic in View helpers

Background information: I'm in my admin module, and I created a view helper in modules/admin/views/helpers/AdminPanel.php. I have a layout plugin that forces my view to use the layout in admin/views/layouts/default.phtml. I'm trying to access my ACL…
meder omuraliev
  • 183,342
  • 71
  • 393
  • 434
1
vote
1 answer

How to represent different application domains in an ACL?

I am working on a web application where different user groups have different access to resources. So far nothing special I guess, but there is a caveat; the application is divided into "domains" so that each of our client organizations has their…
Markus Johnsson
  • 3,949
  • 23
  • 30
1
vote
1 answer

Can't acces models in new Namespace

I use the Propel ORM for my models & mapping. My Models are under /models. I've added a line to my index.php file to make sure that he finds my models: // Ensure library/ is on include_path set_include_path(implode(PATH_SEPARATOR, array( …
nielsv
  • 6,540
  • 35
  • 111
  • 215
1
vote
1 answer

zend acl for list of records to view

I've got a list of trades (lets say some records) made by different users in my Zend framework based application. I want to allow users to view only their trades, and if they try to view another user's trade by changing the url by themselves. They…
Nawaz
  • 303
  • 1
  • 4
  • 15
1
vote
2 answers

ACL implementation based on variable and not static roles

I would like to use Zend's ACL (Zend\Permissions\Acl) not (only) based on static roles but also on (variable) user points. In my application every user has points. A resource has a minimum of points needed to view it. Access to a resource should be…
Karl Lorey
  • 1,536
  • 17
  • 21
1
vote
1 answer

Zend Framework: Implement Zend_Acl_Resources

how should i implement Zend_Acl_Resources? do i have something like: $acl->isAllowed() in controller actions? i somehow think there maybe a better way ... but cant think of it.
iceangel89
  • 6,113
  • 8
  • 40
  • 55
1
vote
1 answer

Zend navigation rendering issue

This is my navigation XML format, there are 2 user levels in the system, Admin and Super Admin, When login as Admin all the menu items should be displayed and it works fine, for Super Admin only the Dashboard and statistics should be displayed. My…
Shaolin
  • 2,541
  • 4
  • 30
  • 41
1
vote
1 answer

Zend_Acl_Exception: Resource not found

Hello I have started working on a already developed system developed in zend framework. Actually I am converting the simple zend to modular approach. I have created folder of modules, set setting for that. Now I created a module affiliate and set it…
Awais Qarni
  • 17,492
  • 24
  • 75
  • 137
1
vote
2 answers

Where to implement Zend_ACL with Domain Object and Data Mapper?

Having read many of Matthew Weier O'Phinney's posts regarding implementing ACL into Models, I have been focused on the best way to go about doing this. However, upon further research on best practices with Domain Objects, I understand that these…
1
vote
1 answer

Zend_Acl rules based on both MVC and Propel models

I am having a web project where some access decisions are dependant on the page itself (e.g. /logout which shall only be visible to logged in users) and some are dependant on dynamic model objects (e.g. /article/delete/1234 where we have to check if…
aufziehvogel
  • 7,167
  • 5
  • 34
  • 56
1
vote
1 answer

Zend_Navigation and Zend_Acl for URI's pages

I am trying to combine Zend_Navigation and Zend_Acl for URI pages, in a standalone fashion (i.e. only these ZF libraries). Unfortunately, even if I mean for a role not to see some pages, I see them in the menu (although if I call isAllowed, all…
JoeSlav
  • 4,479
  • 4
  • 31
  • 50
0
votes
1 answer

Zend nested navigation is not working with ACL

I am unable to get nested Zend_Navigation to work with Zend_ACL. I used XML to define my navigation. Please refer to it here: http://pastebin.com/GA8uQdKh The problem is that the nested elements such as filelabel do not show up on the web page. I…
ryy
  • 317
  • 1
  • 3
  • 13
0
votes
1 answer

Show/Hide elements in Zend views based on User Role?

I'm new to Zend and PHP and I'm getting ready to start work on a portal type application that will house multiple internal applications. I've already setup Zend_Auth and can now login via Active Directory. We've been discussing using Zend_Acl to…
Caley Woods
  • 4,707
  • 4
  • 29
  • 38
0
votes
2 answers

What is Prefered Implementation Approach for Zend Acl

In Zend Framework 1.X which of the following approaches is better and why? Approach-1: Create a (sub)Class extending Zend_Acl and use is to manage all the Acl. It will allow us to use all the Zend_Acl features/function using $this object.…
Bryan
  • 645
  • 1
  • 6
  • 18
0
votes
1 answer

Zend_Acl, Zend_Auth and Modules

I am trying to get around Zend_Acl but had no success so far. I need help as I am really stuck. My situation is this: I have two modules members administrators and two roles member admin I set up an Zend_Auth with a login that gets to the…
FFSS
  • 133
  • 2
  • 10