last-g / srbac Goto Github PK
View Code? Open in Web Editor NEWVersion of SRBAC (http://www.yiiframework.com/extension/srbac/) with support of groups
License: MIT License
Version of SRBAC (http://www.yiiframework.com/extension/srbac/) with support of groups
License: MIT License
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',
),
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.