如何增加一个新的权限
1、配置菜单所对应的权限code
admin/includes/inc_priv.php
$purview['02_cost_list'] = 'cost_list';
2、配置菜单的语言
languages/zh_cn/admincommon.php
$_LANG['02_cost_list'] = '成本明细';
3、配置权限code的语言
languages/zh_cn/admin/priv_action.php
$_LANG['cost_list'] = '成本明细';
4、配置菜单对应的URL
admin/includes/inc_menu.php
$modules['06_stats']['02_cost_list'] = 'cost_list.php?act=list';
5、在数据库中插入权限code
表名:ecs_admin_action
6、登陆查看