Skip to content

Commit faac97d

Browse files
committed
fix: disable edit space option when there is no connection
1 parent 834cab8 commit faac97d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

owncloudDomain/src/main/java/com/owncloud/android/domain/spaces/usecases/FilterSpaceMenuOptionsUseCase.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @author Jorge Aguado Recio
55
*
6-
* Copyright (C) 2025 ownCloud GmbH.
6+
* Copyright (C) 2026 ownCloud GmbH.
77
*
88
* This program is free software: you can redistribute it and/or modify
99
* it under the terms of the GNU General Public License version 2,
@@ -49,7 +49,7 @@ class FilterSpaceMenuOptionsUseCase(
4949
optionsToShow.add(SpaceMenuOption.MEMBERS)
5050
}
5151

52-
if (editPermission || isSpaceManager) {
52+
if (editPermission || (isSpaceManager && currentSpace.isDisabled)) {
5353
optionsToShow.add(SpaceMenuOption.EDIT)
5454
}
5555

0 commit comments

Comments
 (0)