Commit 90dc982d by 宁成龙

暂时去掉权限

parent 539ef76d
...@@ -45,6 +45,7 @@ class AssignUserHandle extends Form implements LazyRenderable ...@@ -45,6 +45,7 @@ class AssignUserHandle extends Form implements LazyRenderable
$adminUser = "userId"; $adminUser = "userId";
$nowSaleId = getAdminUserId(); $nowSaleId = getAdminUserId();
$role = PermService::getUserRoles($nowSaleId); $role = PermService::getUserRoles($nowSaleId);
return $query;
if ($nowSaleId == 1000) { if ($nowSaleId == 1000) {
return $query; return $query;
} }
......
...@@ -45,6 +45,10 @@ class TransferUserHandle extends Form implements LazyRenderable ...@@ -45,6 +45,10 @@ class TransferUserHandle extends Form implements LazyRenderable
$adminUser = "userId"; $adminUser = "userId";
$nowSaleId = getAdminUserId(); $nowSaleId = getAdminUserId();
$role = PermService::getUserRoles($nowSaleId); $role = PermService::getUserRoles($nowSaleId);
return $query;
if ($nowSaleId == 1000 || $role[0] == PermService::ROLE_SALE_DIRECTOR) { if ($nowSaleId == 1000 || $role[0] == PermService::ROLE_SALE_DIRECTOR) {
return $query; return $query;
} }
......
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