Skip to content

Commit 2538f17

Browse files
committed
IOS-5433 Only show space limits to owners in share view
1 parent f22e8fa commit 2538f17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Anytype/Sources/PresentationLayer/Modules/SpaceShare/SpaceShareViewModel.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ final class SpaceShareViewModel: ObservableObject {
132132
}
133133

134134
private func updateUpgradeViewState() {
135-
guard let participantSpaceView else { return }
135+
guard let participantSpaceView, let participant = participantSpaceView.participant else { return }
136+
guard participant.isOwner else { return }
136137

137138
let canAddWriters = participantSpaceView.spaceView.canAddWriters(participants: participants)
138139
let spaceSharingInfo = participantSpacesStorage.spaceSharingInfo

0 commit comments

Comments
 (0)