GithubHelp home page GithubHelp logo

last-g / srbac Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 824 KB

Version of SRBAC (http://www.yiiframework.com/extension/srbac/) with support of groups

License: MIT License

PHP 97.73% CSS 2.27%

srbac's People

Contributors

last-g avatar meln1k avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

huangcongg

srbac's Issues

Auto jump to site loginUrl ?

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',
        ),

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.