Commit workspace changes
This commit is contained in:
@@ -43,6 +43,10 @@ class CollectionPolicy
|
||||
|
||||
public function delete(User $user, Collection $collection): bool
|
||||
{
|
||||
if ((int) ($collection->group_id ?? 0) > 0) {
|
||||
return $collection->group?->canManageCollections($user) ?? false;
|
||||
}
|
||||
|
||||
return $collection->isOwnedBy($user);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user