-
-
Notifications
You must be signed in to change notification settings - Fork 949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SAK-43953 PA System: Banner Dismissal Resets Upon Any Form of Update #11977
Conversation
7410985
to
bbf2288
Compare
@@ -89,6 +91,12 @@ protected void handleCreateOrUpdate(HttpServletRequest request, Map<String, Obje | |||
String uuid = extractId(request); | |||
BannerForm bannerForm = BannerForm.fromRequest(uuid, request); | |||
|
|||
User currentUser = UserDirectoryService.getCurrentUser(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be ideal not to use the cover but if you need to it would be best to init the service in the contstructor like the other services
@@ -89,6 +91,12 @@ protected void handleCreateOrUpdate(HttpServletRequest request, Map<String, Obje | |||
String uuid = extractId(request); | |||
BannerForm bannerForm = BannerForm.fromRequest(uuid, request); | |||
|
|||
User currentUser = UserDirectoryService.getCurrentUser(); | |||
if (currentUser == null) { | |||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
before returning it might make sense to add an error?
b6b372f
to
385f8c2
Compare
Thanks @adrianfish for the help! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Kunal
https://sakaiproject.atlassian.net/browse/SAK-43953