Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Plan
Issues
27
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
ARSnova Backend
Commits
e3c8caa1
Commit
e3c8caa1
authored
5 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Removed unused and buggy check for WebSocket access
parent
053e76b0
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!147
Fix multiple bugs and code smells
Pipeline
#29813
passed with warnings with stages
in 1 minute and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/security/ApplicationPermissionEvaluator.java
+0
-4
0 additions, 4 deletions
.../thm/arsnova/security/ApplicationPermissionEvaluator.java
with
0 additions
and
4 deletions
src/main/java/de/thm/arsnova/security/ApplicationPermissionEvaluator.java
+
0
−
4
View file @
e3c8caa1
...
...
@@ -339,8 +339,4 @@ public class ApplicationPermissionEvaluator implements PermissionEvaluator {
return
auth
instanceof
RunAsUserToken
&&
auth
.
getAuthorities
().
stream
().
anyMatch
(
ga
->
ga
.
getAuthority
().
equals
(
"ROLE_RUN_AS_SYSTEM"
));
}
private
boolean
isWebsocketAccess
(
final
Authentication
auth
)
{
return
auth
instanceof
AnonymousAuthenticationToken
&&
auth
.
getAuthorities
().
contains
(
"ROLE_WEBSOCKET_ACCESS"
);
}
}
This diff is collapsed.
Click to expand it.
Preview
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