Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dde83c7a
authored
Dec 07, 2022
by
宁成龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
完善权限
parent
92b810b2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
app/Admin/Forms/User/TransferUserHandle.php
app/Admin/Service/PermService.php
app/Admin/Forms/User/TransferUserHandle.php
View file @
dde83c7a
...
@@ -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
;
}
}
...
...
app/Admin/Service/PermService.php
View file @
dde83c7a
...
@@ -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
,
];
];
// 获取当前用户角色
// 获取当前用户角色
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment