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

Zend Acl Issue When Using With Modules, Controllers And Actions

I have the a modular zend application which has the following modules, controllers and actions Default Module Index Controller actions : index,login,logout Site Controller actions : index,cars,trains Member Module …
Manish Jangir
  • 5,329
  • 4
  • 42
  • 75
0
votes
1 answer

Different submenus for different user roles in ZF2 navigation (Zend\Navigation)

In a project I use ACL menu for different kind of roles but faced with a problem when try to make same menu for several roles but for some roles I want to hide some points. Documentation says to use 'resource' parameter in array to do it but it…
Igor Vizma
  • 370
  • 5
  • 10
0
votes
1 answer

Zend_ACL guest roles overide Adminstrator roles?

I have created Zend_ACL with three roles :'administrator, guest, *edito*r'. I want guest cannot access /album/index after login. Administrator, editor can access /album/index. All other pages are accessible by all. I created the access list below…
huy
  • 1
0
votes
0 answers

Does Zend_Acl ristricts access to other module's model, mapper class access too?

I am using Zend Modular Application approach. I have setup Zend_Acl module wise. I have already one Mapper class say Default_Model_AirlineMapper set up in Default Module. class Default_Model_AirlineMapper extends Model_AbstractMapper { public…
Rajan Rawal
  • 6,171
  • 6
  • 40
  • 62
0
votes
1 answer

Zend Navigation privileges without Zend ACL's

Ok, I have a code that generates a xml file like the following:
Cristiano Santos
  • 2,157
  • 2
  • 35
  • 53
0
votes
3 answers

Zend-Framework: how we do this without module?

Sorry this is a pretty long question, but i want to have some disucssions here. i am new to zend and try to avoid using modules as I think the view aspect of zend is pretty flexible and module will add extra directory and confusion. However i am…
Dan
  • 78
  • 8
0
votes
1 answer

ZEND_ACL solution in the module based application

I'm developing an application on ZF. I've faced a huge unsolvable problem - ZEND_Acl It's unsolvable for me because every article that I found doesn't relate to MODULE based applications. lately I discovered packtpub article that described using ACL…
mrGott
  • 1,066
  • 3
  • 18
  • 53
0
votes
1 answer

Zend Framework 2.0 Acl Library

Ok i already started out this new project for 2 weeks and so far so good. Up till today i just realize there is no Acl component in Zend 2.0.Is it true? Or im missing something. So currently im clueless with my application acl. Did you guys have…
slier
  • 6,511
  • 6
  • 36
  • 55
0
votes
1 answer

Zend_Acl and Redirection\Forward

Is there any reason why this code would time-out or not work in an action helper preDispatch() function or a plugin preDispatch() function? $request…
okey_on
  • 2,888
  • 8
  • 28
  • 36
0
votes
1 answer

Session management in Zend Framework 2

Trying to do site with administration on Zend Framework 2, set the authorization at mysite / admin / login. How to deny access if the authorization is not completed all the way after mysite / admin / ...? In ZF1 for this I used «BaseController», but…
SmClass
  • 13
  • 1
  • 3
0
votes
1 answer

Linking Zend_Acl with Zend_Navigation

I want Navigation to show only items allowed by Acl, but I have problems linking Navigation with Acl - when I do it, like it is shown in the official example or some other resources on the internet, my navigation still shows all the items like…
bogatyrjov
  • 5,317
  • 9
  • 37
  • 61
0
votes
1 answer

Use Zend_ACL to display list of users own posts

I have users and posts tables and I want to set it up so that a logged in user can only view his posts i.e created by him. The thing is that I know how this can be done with simple sql and php however I'm using a zend framework project here and I…
Ali
  • 7,353
  • 20
  • 103
  • 161
0
votes
1 answer

local javascript files going through zend_acl?

I have a strange issue after moving my zend web application to a linux server, when my layout tries to include a javascript file:- headScript() ->appendFile('/js/jquery/jquery.jqDock.min.js'); ?> The code goes through my zend_acl…
0
votes
1 answer

Zend_ACL - Cannot use my current model with it, I think I'm doing MVC the wrong way here

I've just started using Zend_ACL to restrict access to certain controllers based on user roles. Its working pretty fine except however now I need to set it up so that users can only access their own records. For example my application allows people…
Ali
  • 7,353
  • 20
  • 103
  • 161
0
votes
1 answer

Zend_Auth hasIdentity() with further options

I need your help, knowledge and support :) I know, this is a lot... While writing the procedure for authentification I've found a code snippet as the following: $role = Zend_Auth::getInstance()->hasIdentity() ? 'member' : 'guest'; The hasIdentity()…
ThenO
  • 3
  • 1
1 2 3
9
10