Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
3807b112
Commit
3807b112
authored
Oct 23, 2020
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限调整
parent
c9f25cb3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/PermissionService.java
...va/com/ruoyi/framework/web/service/PermissionService.java
+2
-2
No files found.
ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/PermissionService.java
View file @
3807b112
...
@@ -109,7 +109,7 @@ public class PermissionService
...
@@ -109,7 +109,7 @@ public class PermissionService
for
(
SysRole
sysRole
:
loginUser
.
getUser
().
getRoles
())
for
(
SysRole
sysRole
:
loginUser
.
getUser
().
getRoles
())
{
{
String
roleKey
=
sysRole
.
getRoleKey
();
String
roleKey
=
sysRole
.
getRoleKey
();
if
(
SUPER_ADMIN
.
contains
(
roleKey
)
||
roleKey
.
contain
s
(
StringUtils
.
trim
(
role
)))
if
(
SUPER_ADMIN
.
equals
(
roleKey
)
||
roleKey
.
equal
s
(
StringUtils
.
trim
(
role
)))
{
{
return
true
;
return
true
;
}
}
...
@@ -164,6 +164,6 @@ public class PermissionService
...
@@ -164,6 +164,6 @@ public class PermissionService
*/
*/
private
boolean
hasPermissions
(
Set
<
String
>
permissions
,
String
permission
)
private
boolean
hasPermissions
(
Set
<
String
>
permissions
,
String
permission
)
{
{
return
permissions
.
contains
(
ALL_PERMISSION
)
||
permissions
.
contain
s
(
StringUtils
.
trim
(
permission
));
return
permissions
.
contains
(
ALL_PERMISSION
)
||
permissions
.
equal
s
(
StringUtils
.
trim
(
permission
));
}
}
}
}
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