mirror of
https://github.com/JanGross/quicknotes.git
synced 2026-12-01 02:17:00 +01:00
Fix unable to forget a shared note deleted by the owner. Issue #72
This commit is contained in:
1 parent
38860f784f
commit
073a8dbda1
5 files changed
+9
-12
No files matched your search
@@ -73,7 +73,7 @@ class NoteShareMapper extends QBMapper {
|
||||
->execute();
|
||||
}
|
||||
|
||||
public function forgetShareByNoteIdAndSharedUser(int $noteId, string $userId) {
|
||||
public function forgetShareByNoteIdAndSharedUser(int $noteId, string $userId): bool {
|
||||
try {
|
||||
$noteShare = $this->findSharesByNoteIsAndSharedUser($noteId, $userId);
|
||||
} catch (DoesNotExistException $e) {
|
||||
@@ -86,7 +86,7 @@ class NoteShareMapper extends QBMapper {
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function existsByNoteAndSharedUser(int $noteId, string $userId) {
|
||||
public function existsByNoteAndSharedUser(int $noteId, string $userId): bool {
|
||||
try {
|
||||
$this->findSharesByNoteIsAndSharedUser($noteId, $userId);
|
||||
} catch (DoesNotExistException $e) {
|
||||
|
||||
Reference in new issue
Block a user