Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with CPhpAuthManager #90

Open
circulon opened this issue Oct 22, 2013 · 1 comment
Open

Does not work with CPhpAuthManager #90

circulon opened this issue Oct 22, 2013 · 1 comment

Comments

@circulon
Copy link

Although the docs say the DB usage is optional it is not.

example
do not set the class in the authmanager component of the config
then try to add a Role.
The file gets written to application.data.auth.php as it should
but then there is an exception in the AuthBehaviour like

CException
Property "CPhpAuthManager.db" is not defined.

It seems that several of the methods are hardcoded to ONLY use the db connection
ie getAncestor, getDescendant

This effectively means that for small apps or development purposes where you may not necessarily want to add the tables to the db it is just not possible.

@crisu83
Copy link
Owner

crisu83 commented Oct 22, 2013

This is true, but feel free to make a PR if you have an idea on how we could also support the php-based auth manager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants