Commit dde83c7a by 宁成龙

完善权限

parent 92b810b2
......@@ -48,7 +48,6 @@ class TransferUserHandle extends Form implements LazyRenderable
if ($nowSaleId != 1783) {
return $query;
}
var_dump($role);
if ($nowSaleId == 1000 || $role[0] == PermService::ROLE_SALE_DIRECTOR) {
return $query;
}
......
......@@ -31,11 +31,11 @@ class PermService
const ROLE_NULL = 0; // 未设置角色
static $role_name_map = [
self::ROLE_ADMIN => "管理员",
self::ROLE_SALE => "销售",
self::ROLE_SALE_LEADER => "销售经理",
self::ROLE_SALE_DIRECTOR => "销售总监",
self::ROLE_NULL => "未设置角色",
"管理员" => self::ROLE_ADMIN,
"销售" => self::ROLE_SALE,
"销售经理" => self::ROLE_SALE_LEADER,
"销售总监" => self::ROLE_SALE_DIRECTOR,
"未设置角色" => self::ROLE_NULL,
];
// 获取当前用户角色
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment