Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
159
Issues
159
List
Boards
Labels
Service Desk
Milestones
Merge Requests
41
Merge Requests
41
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
c20c0859
Commit
c20c0859
authored
3 hours ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): ensure conflicting uuids are not sent to wrong recipients - resolves #548
parent
d6e26eac
master
No related merge requests found
Pipeline
#67438610
passed with stages
in 7 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
notifications.php
Controllers/api/v1/notifications.php
+4
-0
No files found.
Controllers/api/v1/notifications.php
View file @
c20c0859
...
...
@@ -182,6 +182,10 @@ class notifications implements Interfaces\Api
$return
=
[];
// Formatting for legacy notification handling in frontend
foreach
(
$notifications
as
$key
=>
$entity
)
{
if
(
$entity
->
getToGuid
()
!=
Core\Session
::
getLoggedInUser
()
->
guid
)
{
error_log
(
'[notification]: Mismatch of to_guid with uuid '
.
$entity
->
getUuid
());
continue
;
}
$entityObj
=
Entities\Factory
::
build
(
$entity
->
getEntityGuid
());
$fromObj
=
Entities\Factory
::
build
(
$entity
->
getFromGuid
());
$toObj
=
Core\Session
::
getLoggedInUser
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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