Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
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
b202af13
authored
May 08, 2019
by
xuxueli
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
日志权限控制:仅管理员支持查询全部;普通用户仅支持查询有权限的 jobGroup
parent
211abb98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/JobInfoController.java
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/JobInfoController.java
View file @
b202af13
...
@@ -86,7 +86,7 @@ public class JobInfoController {
...
@@ -86,7 +86,7 @@ public class JobInfoController {
public
static
void
validPermission
(
HttpServletRequest
request
,
int
jobGroup
)
{
public
static
void
validPermission
(
HttpServletRequest
request
,
int
jobGroup
)
{
XxlJobUser
loginUser
=
(
XxlJobUser
)
request
.
getAttribute
(
LoginService
.
LOGIN_IDENTITY_KEY
);
XxlJobUser
loginUser
=
(
XxlJobUser
)
request
.
getAttribute
(
LoginService
.
LOGIN_IDENTITY_KEY
);
if
(!
loginUser
.
validPermission
(
jobGroup
))
{
if
(!
loginUser
.
validPermission
(
jobGroup
))
{
throw
new
RuntimeException
(
I18nUtil
.
getString
(
"system_permission_limit"
));
throw
new
RuntimeException
(
I18nUtil
.
getString
(
"system_permission_limit"
)
+
"[username="
+
loginUser
.
getUsername
()
+
"]"
);
}
}
}
}
...
...
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