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

Auto jump to site loginUrl ? #1

Open
chuchujie opened this issue Jun 25, 2014 · 0 comments
Open

Auto jump to site loginUrl ? #1

chuchujie opened this issue Jun 25, 2014 · 0 comments

Comments

@chuchujie
Copy link

how to set or assign loginUrl to the specified module. I have a backend module but always auto jump the site loginUrl if the request backend without access


        'srbac' => array(
            'userclass' => 'AdminUser', //后台用户登录权限控制表模型文件名,default: User
            'userid' => 'id', //用户ID唯一标识对于用户表主键 default: userid
            'username' => 'username', //用户名字段名 default:username
            'delimeter' => '@', //item分隔符 分配operation,访问控制时会用到, 譬如:admin@UserLogin default:-
            'debug' => false, // 调试模式,true则所有用户均开放,可以随意修改权限控制 default :false
            'pageSize' => 10, // GUI分页条输 default : 15
            'superUser' => 'Authority', //超级用户不受srbac任何权限控制(你需要在用户表添加一个超级用户然后在GUI给予Authorizer) default: Authorizer
            'css' => 'srbac.css', //GUI的css样式 default: srbac.css
            'layout' =>'application.modules.admin.views.layouts.main', //GUI布局模版(建议切换为需要SRBAC的模块) default: application.views.layouts.main,must be an existing alias*//*
            'notAuthorizedView' => 'srbac.views.authitem.unauthorized', // default:srbac.views.authitem.unauthorized, must be an existing alias
            'alwaysAllowed'=>array(//总是允许访问的动作  格式:mudule_id + 分隔符 + controller_id + action_id
                'admin@UserLogout','admin@UserLogin','SiteLogin'
            ),
            'userActions' => array('Show', 'View', 'List'), //The operations that are assigned to viewing task default: array()
            'listBoxNumberOfLines' => 15, //default : 10
            'imagesPath' => 'srbac.images', // default: srbac.images
            'imagesPack' => 'noia', //default: noia
            'iconText' => true, // default : false
            'header'=>'srbac.views.authitem.header', //default : srbac.views.authitem.header,
            'footer'=>'srbac.views.authitem.footer',
            'showHeader'=>true,
            'showFooter'=>true,
            'alwaysAllowedPath'=>'srbac.components',
        ),

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

1 participant