|
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
|
|
|
|
|
|
|
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
|
|
|
|
|
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.
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|