Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-enterprise-base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-enterprise-base
Commits
9826b8c8
Commit
9826b8c8
authored
Sep 25, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户路由权限
parent
417f6555
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
AuthInterceptor.java
.../java/com/gic/enterprise/interceptor/AuthInterceptor.java
+3
-3
No files found.
gic-enterprise-common/src/main/java/com/gic/enterprise/interceptor/AuthInterceptor.java
View file @
9826b8c8
...
...
@@ -20,7 +20,8 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
private
static
final
Logger
log
=
LogManager
.
getLogger
(
AuthInterceptor
.
class
);
private
String
[]
ignoreURI
=
new
String
[]
{
"/gic-auth-web/login"
,
"/gic-auth-web/logout"
,
"/gic-auth-web/list-enterprise-by-phone"
};
private
String
[]
ignoreURI
=
new
String
[]
{
"/gic-auth-web/login"
,
"/gic-auth-web/logout"
,
"/gic-auth-web/list-enterprise-by-phone"
,
"/gic-auth-web/login-user-menu"
,
"/gic-auth-web/login-user-operation-item"
};
@Override
public
boolean
preHandle
(
HttpServletRequest
request
,
HttpServletResponse
response
,
Object
object
)
throws
Exception
{
...
...
@@ -40,8 +41,7 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
//判断是否有权限的路径
UserDetail
userDetail
=
UserDetailUtils
.
getUserDetail
();
Map
<
String
,
Object
>
menuUrlMap
=
userDetail
.
getMenuUrlMap
();
if
(
menuUrlMap
==
null
)
{
if
(
menuUrlMap
==
null
||
menuUrlMap
.
isEmpty
())
{
throw
new
CommonException
(
ErrorCode
.
SYSTEM_ERROR
.
getErrorCode
(),
"sorry,您无该页面的访问权限,请联系超级管理员!"
);
}
if
(!
menuUrlMap
.
containsKey
(
uri
))
{
...
...
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