Commit dde83c7a by 宁成龙

完善权限

parent 92b810b2
...@@ -48,7 +48,6 @@ class TransferUserHandle extends Form implements LazyRenderable ...@@ -48,7 +48,6 @@ class TransferUserHandle extends Form implements LazyRenderable
if ($nowSaleId != 1783) { if ($nowSaleId != 1783) {
return $query; return $query;
} }
var_dump($role);
if ($nowSaleId == 1000 || $role[0] == PermService::ROLE_SALE_DIRECTOR) { if ($nowSaleId == 1000 || $role[0] == PermService::ROLE_SALE_DIRECTOR) {
return $query; return $query;
} }
......
...@@ -31,11 +31,11 @@ class PermService ...@@ -31,11 +31,11 @@ class PermService
const ROLE_NULL = 0; // 未设置角色 const ROLE_NULL = 0; // 未设置角色
static $role_name_map = [ static $role_name_map = [
self::ROLE_ADMIN => "管理员", "管理员" => self::ROLE_ADMIN,
self::ROLE_SALE => "销售", "销售" => self::ROLE_SALE,
self::ROLE_SALE_LEADER => "销售经理", "销售经理" => self::ROLE_SALE_LEADER,
self::ROLE_SALE_DIRECTOR => "销售总监", "销售总监" => self::ROLE_SALE_DIRECTOR,
self::ROLE_NULL => "未设置角色", "未设置角色" => 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