diff --git a/ownCloud/Client/Actions/Actions+Extensions/CollaborateAction.swift b/ownCloud/Client/Actions/Actions+Extensions/CollaborateAction.swift index 7530ba242..2bece2530 100644 --- a/ownCloud/Client/Actions/Actions+Extensions/CollaborateAction.swift +++ b/ownCloud/Client/Actions/Actions+Extensions/CollaborateAction.swift @@ -31,6 +31,10 @@ class CollaborateAction: Action { // MARK: - Extension matching override class func applicablePosition(forContext: ActionContext) -> ActionPosition { if forContext.items.count == 1, let core = forContext.core, core.connectionStatus == .online, core.connection.capabilities?.sharingAPIEnabled == 1, let item = forContext.items.first, item.isShareable { + if let driveID = item.driveID, driveID == OCDriveIDSharesJail { + // Disable re-sharing by not allowing to share items located in the Shares Jail (https://github.com/owncloud/ios-app/issues/1353) + return .none + } return .first }