sarvan75 / yii-user-management

Automatically exported from code.google.com/p/yii-user-management
0 stars 0 forks source link

Patch for /trunk/role/RoleModule.php #182

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
<?php
Yii::setPathOfAlias('RoleModule' , dirname(__FILE__));

class RoleModule extends CWebModule {
  // set useYiiCheckAccess to true to disable Yums own checkAccess routines.
  // Use this when you implement your own access logic or use yum together 
with
  // SrBAC
  public $useYiiCheckAccess = false;

  public $layout = 'application.modules.user.views.layouts.yum';

  public $roleTable = '{{role}}';
  public $permissionTable = '{{permission}}';
  public $actionTable = '{{action}}';
  public $userRoleTable = '{{user_role}}';

  public $controllerMap=array(
      'action'=>array(
        'class'=>'RoleModule.controllers.YumActionController'),
      'permission'=>array(
        'class'=>'RoleModule.controllers.YumPermissionController'),
      'role'=>array(
        'class'=>'RoleModule.controllers.YumRoleController'),
      );

}

Should be public $roleTable = '{{role}}'; instead of public $rolesTable = 
'{{role}}';

Original issue reported on code.google.com by dainius...@gmail.com on 24 Dec 2011 at 9:29

Attachments: