I am beginner to CakePHP Acl. I have successfully implemented the ACL component in my CakePHP project. I am facing two major problem with ACL. First of all this is my table structure.
groups
------
id
title
created
modified
users
-----
id
group_id
title
status (0 => inactive, 1 => active, 2 => suspended)
created
modified
My first problem is that i have two user groups "admin", "members". How can i restrict the members to login the admin panel. Since ACL using the "users" table for admin user and member user login.
The second problem is that how can i restrict the inactive and suspended user login with a customize error message like your account is suspended.
Admin routing can be used to separate members login. That can be done during the cake bake process. http://bakery.cakephp.org/articles/nate/2009/07/14/secrets-of-admin-routing
Use session flash message to show error message based on the condition from your controller. http://book.cakephp.org/2.0/en/core-libraries/components/sessions.html