Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
examsAndAdmissions
Commits
d1e49f6d
Commit
d1e49f6d
authored
1 year ago
by
shishir suman
Browse files
Options
Download
Patches
Plain Diff
reverting fix for concurrent modification exception
parent
3902cdd8
github/fork/ruksana2808/filter_bug_examCycle
bug_fix_question_paper_upload
development
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/com/tarento/upsmf/examsAndAdmissions/util/AccessTokenValidator.java
+1
-2
...o/upsmf/examsAndAdmissions/util/AccessTokenValidator.java
with
1 addition
and
2 deletions
+1
-2
src/main/java/com/tarento/upsmf/examsAndAdmissions/util/AccessTokenValidator.java
+
1
−
2
View file @
d1e49f6d
...
...
@@ -52,8 +52,6 @@ public class AccessTokenValidator {
@Autowired
private
RedisUtil
redisUtil
;
private
List
<
String
>
userRoleList
=
Arrays
.
asList
(
userRoles
.
split
(
","
));
public
String
verifyUserToken
(
String
token
,
boolean
checkActive
,
String
uri
)
{
String
userId
=
Constants
.
Parameters
.
UNAUTHORIZED
;
try
{
...
...
@@ -79,6 +77,7 @@ public class AccessTokenValidator {
log
.
error
(
"Missing Appropriate Roles."
);
return
Constants
.
Parameters
.
UNAUTHORIZED
;
}
List
<
String
>
userRoleList
=
Arrays
.
asList
(
userRoles
.
split
(
","
));
boolean
roleMatches
=
roles
.
stream
().
anyMatch
(
x
->
userRoleList
.
contains
(
x
.
toLowerCase
()));
log
.
debug
(
"Role matched - {}"
,
roleMatches
);
if
(
roleMatches
)
{
...
...
This diff is collapsed.
Click to expand it.
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!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets