mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3215 Date as an object | Fix | Space member is removed by swiping (#1968)
This commit is contained in:
parent
5edb38a440
commit
9be32dff13
2 changed files with 2 additions and 12 deletions
|
@ -7,6 +7,7 @@ import com.anytypeio.anytype.core_models.ObjectWrapper
|
|||
import com.anytypeio.anytype.core_models.RelationListWithValueItem
|
||||
import com.anytypeio.anytype.core_models.Relations
|
||||
import com.anytypeio.anytype.core_models.primitives.SpaceId
|
||||
import com.anytypeio.anytype.core_models.restrictions.ObjectRestriction
|
||||
import com.anytypeio.anytype.domain.misc.UrlBuilder
|
||||
import com.anytypeio.anytype.domain.objects.StoreOfRelations
|
||||
import com.anytypeio.anytype.domain.primitives.FieldParser
|
||||
|
@ -78,6 +79,6 @@ fun ObjectWrapper.Basic.toUiObjectsListItem(
|
|||
}?.name,
|
||||
layout = layout,
|
||||
icon = obj.objectIcon(builder = urlBuilder),
|
||||
isPossibleToDelete = isOwnerOrEditor
|
||||
isPossibleToDelete = isOwnerOrEditor && !restrictions.contains(ObjectRestriction.DELETE)
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue