diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-05-09 13:54:57 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-05-09 13:54:57 +0300 |
commit | 167dc12720c3980ba238cebc15f6f2670282f1d6 (patch) | |
tree | 1d3ab6da445dabd438f42cee1ef9b867f4ed5629 /app/src/main/java/it/niedermann/nextcloud/deck/ui/board/accesscontrol/AccessControlDialogFragment.java | |
parent | 06404d6e81a2dd1daded266784729a87a947aad0 (diff) |
Only allow changing edit and manage permissions of sharees when user itself has manage permission at this board
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/board/accesscontrol/AccessControlDialogFragment.java')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/board/accesscontrol/AccessControlDialogFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/board/accesscontrol/AccessControlDialogFragment.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/board/accesscontrol/AccessControlDialogFragment.java index e0ab5a8f2..6d2dc7e26 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/board/accesscontrol/AccessControlDialogFragment.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/board/accesscontrol/AccessControlDialogFragment.java @@ -82,7 +82,7 @@ public class AccessControlDialogFragment extends BrandedDialogFragment implement ownerControl.setLocalId(HEADER_ITEM_LOCAL_ID); ownerControl.setUser(fullBoard.getOwner()); accessControlList.add(0, ownerControl); - adapter.update(accessControlList); + adapter.update(accessControlList, fullBoard.getBoard().isPermissionManage()); userAutoCompleteAdapter = new UserAutoCompleteAdapter(requireActivity(), viewModel.getCurrentAccount(), boardId); binding.people.setAdapter(userAutoCompleteAdapter); binding.people.setOnItemClickListener(this); |