Alex Tech Adventures The webs best tutorials!

Welcome, Guest
Please Login or Register.    Lost Password?

ACL dynamic assertions
(0 viewing) 
Go to bottomPage: 123
TOPIC: ACL dynamic assertions
#522
Re:ACL dynamic assertions 1 Year, 12 Months ago Karma: 0
Hello Alex,
thank you very much for another great lesson, there is just one question, i was hoping you would answer.
As in the tutorial, there are on the top accordion pane, books listed with the ids 1,2,3 ...when your logged in as "john" your book are id 1 and 3, but not id = 2 ...so youll get the edit links ..../books/list/id/1 and /books/list/id/3 ...but what would happend when you type manually the url .../books/list/id/2 ...which doesnt belong to you ? can you still edit it? What to do against this ?

Thank you very much in advance.
-Ben
Fichtenelch
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#530
Re:ACL dynamic assertions 1 Year, 11 Months ago Karma: 0
I'm quite sure that you would be able to edit them depending on your role (meaning that you still can't edit your own comment if you don't have the role permissions). I solved this problem, see my post before yours
Yorian
Junior Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#653
ACL dynamic assertions 1 Year, 9 Months ago Karma: 0
Hi Alex,
thank you very much for those tutorials. You saved my life many times, but now I faced issue I cannot manage.
I'm trying to set up dynamic assertion in my project, I'm at the point that only owners see the edit and delete links (so everything until that moment works as you described) but when I acctually click the link I got redirected to the index page not to the edit or delete action... Where I should search for error?
Thank you very much in advance.
lukasz
Fresh Boarder
Posts: 0
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#654
ACL dynamic assertions 1 Year, 9 Months ago Karma: 0
I removed redirection from AccessCheck.php, now I got error Fatal error: Uncaught exception 'Zend_Acl_Exception' with message 'Resource id 'edit-training' already exists(...)
I believe its the same error that benawabe896 got but I'm not sure what should I do to fix it.
lukasz
Fresh Boarder
Posts: 0
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#687
Re:ACL dynamic assertions 1 Year, 7 Months ago Karma: 16
Do you have edit and delete allowed in your ACL model for the owner using CommentAssertion? And check that you have commentAsertion and commentResource models correct.
alexanderrv
Administrator
Posts: 279
graph
User Offline Click here to see the profile of this user
Gender: Male tmthv2 alexchatonly@hotmail.com Location: Freeport, Bahamas Birthdate: 1989-04-14
The administrator has disabled public write access.
 
Go to topPage: 123
Moderators: alexanderrv
You are here: Home Forum

Statistics

Members : 1388
Content : 42
Web Links : 1
Content View Hits : 190538

Poll

Interested in TinyBrowser and TinyMce plugin for ZF?
 

Who's Online

We have 25 guests online