mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 07:04:07 +01:00
* [ADD] Unit testing. Work in progress
* [MOD] Code refactoring
This commit is contained in:
@@ -486,7 +486,7 @@ class NotificationRepository extends Repository implements RepositoryItemInterfa
|
||||
sticky,
|
||||
onlyAdmin
|
||||
FROM Notification
|
||||
WHERE (userId = ? OR userId IS NULL OR sticky = 1)
|
||||
WHERE (userId = ? OR (userId IS NULL AND sticky = 1))
|
||||
AND onlyAdmin = 0
|
||||
ORDER BY `date` DESC ';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user