Hello.

i have a problem that can't resolve.

my app_controller::beforeFilter has a simple authorization script (ACL
is a total overkill in my case) that returns errors via a flash()
message.

my CRUD actions are defined in app_controller but one controller
doens't allow to delete items at all, so the Users::delete() flashes a
message like "Unable to delete a user".

if i try to load the Users::delete page, as user that doesn't have
even permissions to access that view, my app returns both flash
messages:

- Unable to access this page.
- Unable to delete user.

i just need the first one.
how to avoid this?

sry for my bad english.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to