Skip to content

Commit 76f2402

Browse files
committed
- CollaborateAction: do not allow items in Shares Jail to be reshared
1 parent c0acb89 commit 76f2402

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ownCloud/Client/Actions/Actions+Extensions/CollaborateAction.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ class CollaborateAction: Action {
3131
// MARK: - Extension matching
3232
override class func applicablePosition(forContext: ActionContext) -> ActionPosition {
3333
if forContext.items.count == 1, let core = forContext.core, core.connectionStatus == .online, core.connection.capabilities?.sharingAPIEnabled == 1, let item = forContext.items.first, item.isShareable {
34+
if let driveID = item.driveID, driveID == OCDriveIDSharesJail {
35+
// Disable re-sharing by not allowing to share items located in the Shares Jail (https://github.com/owncloud/ios-app/issues/1353)
36+
return .none
37+
}
3438
return .first
3539
}
3640

0 commit comments

Comments
 (0)