Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
3807b112
Commit
3807b112
authored
Oct 23, 2020
by
RuoYi
Browse files
权限调整
parent
c9f25cb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/PermissionService.java
View file @
3807b112
...
...
@@ -109,7 +109,7 @@ public class PermissionService
for
(
SysRole
sysRole
:
loginUser
.
getUser
().
getRoles
())
{
String
roleKey
=
sysRole
.
getRoleKey
();
if
(
SUPER_ADMIN
.
contain
s
(
roleKey
)
||
roleKey
.
contain
s
(
StringUtils
.
trim
(
role
)))
if
(
SUPER_ADMIN
.
equal
s
(
roleKey
)
||
roleKey
.
equal
s
(
StringUtils
.
trim
(
role
)))
{
return
true
;
}
...
...
@@ -164,6 +164,6 @@ public class PermissionService
*/
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
Supports
Markdown
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