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
0
votes
2 answers

how to create model based Acl

if we have some modules in our application how we could create Model based ACL by zend framework for each models? thanks
user1400
  • 1,411
  • 4
  • 26
  • 36
0
votes
1 answer

Zend Navigation Multiple ACL roles

I am trying to create an ACL where users may have different roles in different departments. The user is given a role in the form of role::guest or role::user depending if they are logged in. This is their userRole. (There is also a role::superuser…
Gavin
  • 2,123
  • 1
  • 15
  • 19
0
votes
1 answer

Notice: Trying to get property of non-object Zend AccessCheck

I'm learning Zend from Alexander Romanenko video , I have problem about zend_acl, I've declared database connection in application.ini: resources.db.params.dbname = zftutorial resources.db.params.username = root resources.db.params.password …
Farzan Najipour
  • 2,442
  • 7
  • 42
  • 81
0
votes
1 answer

zend_acl: Adding extra resources dynamically and getting a param predispatch

First sorry about the woffle as I'm not sure how best to describe this. Basically I am not sure how I can get param in the bootstrap before the controller is loaded, but here is the long winded version... I have got an acl class storing all my…
Timmeh
  • 135
  • 1
  • 3
  • 9
0
votes
1 answer

ZF2 User group specific layouts

I have a project with 3 different Layouts. 1 Layout for the Login page, 1 Layout for the administrators and editors and a 3rd Layout for general users where also the administrators have access to (its a layout for 3 different pages where you can…
Velixir
  • 88
  • 7
0
votes
1 answer

Using Zend_Acl with Redirect/Forward

In my controller I have some actions with redirects to another actions. For example: public function editAction() { $this->_forward('add'); } I'd like to allow user only access the editAction, but I need give him access to addAction too. There…
André A.
  • 1
  • 2
0
votes
1 answer

Integration of Zend_Auth and Zend_Acl with Zend_Amf_Server

Has anyone succesfully integrated Zend_Auth and Zend_Acl with Zend_Amf_Server? I'am looking for a working example.
user269474
0
votes
1 answer

ACL check in the view

Well in ZF1 there was the isAllowed view helper to check the ACL in the view. But I can't find an equivalent of it for ZF2. The closest I got was the ZF2 navigation view helper, but the problem with that is that it requires a AbstractPage. I just…
MKroeders
  • 7,562
  • 4
  • 24
  • 39
0
votes
1 answer

Iframe Integration - after session timeout redirect user to parent sites login page

I am working with another site (abcxyz.com) who is displaying the content of my site (mysite.com) to its users through iframe integration. The user logs in on abcxyz and has no idea abot mysite.com Egs So everything is working fine so far. Now when…
Gublooo
  • 2,550
  • 8
  • 54
  • 91
0
votes
0 answers

zend $acl->has() recource bt $acl->isAllowed returning false

I am facing a strange problem with zend_acl, I have successfully added role and resources , but the isAllowed() function is always redirecting to the error controller. $usersNs->role = 'admin'; $acl->addRole(new…
Rudra
  • 354
  • 1
  • 2
  • 10
0
votes
1 answer

Zend Framework 2 ACL - Permissions on Modules Index

I have a problem setting up proper rules in my application. The following is my code... I create roles, resources and restrictions.. but... I expect that 'consul' is allowed to go to /mymodule but it's denied to /mymodule/{add,edit,delete}... and so…
0
votes
1 answer

Zend_Acl modular class system

Hey guys, I'm starting with Zend, and trying to understand the way it works (getting there), and with Acl classes, people seem to declare all the roles and resources in one file. Now to me this seems a bit of a waste of system resources if the…
Psytronic
  • 6,043
  • 5
  • 37
  • 56
0
votes
2 answers

Login/Logout links in database driven navigation?

I have a database driven navigation mainly composed of two tables: menus and a menu_items, this works out fine for purely "static" links but now I need to have a dynamic link ( login/logout ). My menu_items table is just composed of links to pages…
meder omuraliev
  • 183,342
  • 71
  • 393
  • 434
0
votes
1 answer

Is Zend_Acl necessary?

I have a role-based permissions system where I am not sure Zend_Acl is necessary, so I'd like to ask if I am right. The web applications in question doesn't have a separate admin screens, all controllers/actions are accessible to anyone. So I can't…
AlexA
  • 4,028
  • 8
  • 51
  • 84
0
votes
1 answer

Zend_Acl I need something like $acl->hasParentResource()

I'm checking in the view the allowed content by role and resource with Zend_Acl to show specific content. This is working fine, but I would like to have something like a hasParentResource() method to check the parents of a resource. An…
Mischa
  • 1,073
  • 2
  • 13
  • 23