mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
Fix password capabilities for public link capabilities
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
3bb6f43bdf
commit
7be5541cde
1 changed files with 3 additions and 3 deletions
|
@ -41,9 +41,9 @@ struct ShareCapabilities {
|
|||
supportsUploadOnly = dict["supports_upload_only"] as? Bool ?? false
|
||||
multipleAllowed = dict["multiple"] as? Bool ?? false
|
||||
|
||||
if let passwordCapabilities = dict["password"] as? [String : Any] {
|
||||
askOptionalPassword = dict["askForOptionalPassword"] as? Bool ?? false
|
||||
enforcePassword = dict["enforced"] as? Bool ?? false
|
||||
if let passwordCaps = dict["password"] as? [String : Any] {
|
||||
askOptionalPassword = passwordCaps["askForOptionalPassword"] as? Bool ?? false
|
||||
enforcePassword = passwordCaps["enforced"] as? Bool ?? false
|
||||
}
|
||||
|
||||
if let expireDateCapabilities = dict["expire_date"] as? [String: Any] {
|
||||
|
|
Loading…
Reference in a new issue