Add a label "shared with others" for export shared with other peoples

This commit is contained in:
2025-07-02 10:12:01 +02:00
parent a4884eb3a0
commit 73bae475bd
3 changed files with 10 additions and 0 deletions

View File

@@ -176,6 +176,14 @@ class SavedExport implements TrackCreationInterface, TrackUpdateInterface
]);
}
/**
* Return true if shared with at least one user or one group
*/
public function isShared(): bool
{
return $this->sharedWithUsers->count() > 0 || $this->sharedWithGroups->count() > 0;
}
/**
* Determines if the user is shared with either directly or through a group.
*