Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reg-app
Regapp
Commits
96bfeff5
Commit
96bfeff5
authored
Feb 19, 2016
by
michael.simon
Browse files
Rename overloaded method. JSF EL does not support overloaded methods. It
is possible that the wrong method is called.
parent
dcb878f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
bwreg-webapp/src/main/java/edu/kit/scc/webreg/sec/AuthorizationBean.java
View file @
96bfeff5
...
...
@@ -236,7 +236,7 @@ public class AuthorizationBean implements Serializable {
return
sessionManager
.
isUserInRole
(
role
);
}
public
boolean
isUserInRole
(
RoleEntity
role
)
{
public
boolean
isUserInRole
Entity
(
RoleEntity
role
)
{
if
(
role
==
null
)
return
false
;
...
...
@@ -245,7 +245,7 @@ public class AuthorizationBean implements Serializable {
public
boolean
isUserInRoles
(
Set
<
RoleEntity
>
roles
)
{
for
(
RoleEntity
role
:
roles
)
{
if
(
isUserInRole
(
role
))
if
(
isUserInRole
Entity
(
role
))
return
true
;
}
return
false
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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