Skip to content

Commit

Permalink
feat: show "can edit" switch in private shares only when resharing ca…
Browse files Browse the repository at this point in the history
…pability is true
  • Loading branch information
JuancaG05 committed Sep 20, 2024
1 parent 2decb16 commit cfe16a0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
* @author David A. Velasco
* @author Christian Schabesberger
* @author David González Verdugo
* Copyright (C) 2020 ownCloud GmbH.
* @author Juan Carlos Garrote Gascón
*
* Copyright (C) 2024 ownCloud GmbH.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
Expand Down Expand Up @@ -165,6 +167,7 @@ class EditPrivateShareFragment : DialogFragment() {

val sharePermissions = share!!.permissions

binding.canShareSwitch.isVisible = shareViewModel.isResharingAllowed()
binding.canShareSwitch.isChecked = sharePermissions and RemoteShare.SHARE_PERMISSION_FLAG > 0

val anyUpdatePermission = RemoteShare.CREATE_PERMISSION_FLAG or
Expand Down

0 comments on commit cfe16a0

Please sign in to comment.