-
Notifications
You must be signed in to change notification settings - Fork 92
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
Yii-Auth and Menubuilder #83
Comments
The problem is that you are missing a class property from a widget
|
That did work! Stupidly, I had forgotten to YiiStrap. But now, I've got a different problem. No matter what I do, when I try to go to /auth, I get "Error 401 Access Denied." I've tried re-enabling Rights, and giving permissions on Auth.* to everyone. I've tried adding (in /modules/auth/controllers/AuthItemController): public function filters() {
return array('accessControl'); // perform access control for CRUD operations
}
public function accessRules() {
return array(
array(
'allow',
'users' => array('*'),
),
array('deny'),
);
} Literally everything returns a 401. |
AFAIK you need to configure users for the auth module. On Thu, Jul 4, 2013 at 4:45 PM, LarryTX notifications@github.com wrote:
Best regards, |
Yii-Users is configured and working quite well with everything else. 'components' => array(
'user' => array(
'class' => 'auth.components.AuthWebUser',
'admins' => array('Admin'),
'behaviors' => array(
'application.vendor.schmunk42.web-user-behavior.WebUserBehavior'
),
'allowAutoLogin' => TRUE,
'loginUrl' => array('/user/login'),
), Notably, Rights works quite well. That is until I disable rights and enable Auth. |
Auth and Menubuilder apparently don't get along. I'm getting this response with the both of them in effect:
When I was using Rights, I never got this message; it only appeared after installing Auth and removing Rights.
Since Menubuilder is the only game in Yii-town when it comes to a database-driven menu system (an absolute necessity for anything beyond a simple, fairly primitive Web site), I really need an access control system that plays nicely with it. Any ideas how to overcome this with Auth?
The text was updated successfully, but these errors were encountered: