关于CDbAuthManager的一个小bug

这两天用了下rights的权限管理系统,除了性能稍微差点以为,还是挺不错。但是发现一个问题就是由CDbAuthManager继承的RDbAuthManager

rights模块创建之后的几个表是没有表前缀的。

因此发现CDbAuthManager里边的




/**

	 * @var string the name of the table storing authorization items. Defaults to 'AuthItem'.

	 */

	public $itemTable='AuthItem';

	/**

	 * @var string the name of the table storing authorization item hierarchy. Defaults to 'AuthItemChild'.

	 */

	public $itemChildTable='AuthItemChild';

	/**

	 * @var string the name of the table storing authorization item assignments. Defaults to 'AuthAssignment'.

	 */

	public $assignmentTable='AuthAssignment';



应该都加上{{}}


public $itemTable='{{AuthItem}}';

你错了,你可以自己在配置的时候自行修改的,他这个只是默认值

$itemTable的表前缀不一定和项目的表前缀一致,所以最好不要用{{AuthItem}}