Skip to content

[FIX] Apply read permission to the list of members instead of the main option #4809

Open
corevibe555 wants to merge 5 commits intoowncloud:masterfrom
corevibe555:fix/apply-read-permission-to-the-list-of-members
Open

[FIX] Apply read permission to the list of members instead of the main option #4809
corevibe555 wants to merge 5 commits intoowncloud:masterfrom
corevibe555:fix/apply-read-permission-to-the-list-of-members

Conversation

@corevibe555
Copy link
Copy Markdown

@corevibe555 corevibe555 commented Mar 21, 2026

Problem

Users without the libre.graph/driveItem/permissions/read permission had the Members action hidden from the space menu. However, that screen also contains the permalink section, which became inaccessible to these users.

Solution

  • Always include Members in the filtered space menu options.
  • In SpaceMembersFragment, treat the read permission as controlling members and public links sections.

Issue

#4782

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 21, 2026

CLA assistant check
All committers have signed the CLA.

@corevibe555 corevibe555 changed the title [FIX]: keep Members entry visible; restrict member list by read permission (#4782) [FIX] Keep Members entry visible; restrict member list by read permission (#4782) Mar 21, 2026
@corevibe555 corevibe555 force-pushed the fix/apply-read-permission-to-the-list-of-members branch from d0c5a29 to e2c26e7 Compare March 22, 2026 23:17
@jesmrec
Copy link
Copy Markdown
Collaborator

jesmrec commented Mar 23, 2026

Thanks for the contribution @corevibe555 . I'll give you some tips that you will also find in our CONTRIBUTING file:

  • For the branch names, we use underscore _ to separate the chunks, like corevibe555:fix/apply_read_permission_to_the_list_of_members. Don't worry for that in the current PR, but please take in account for future contributions 😉. We'd appreciate that.

  • In terms of CHANGELOG, we use calens to keep our changelog updated. The only task you have to do is adding an small file to our unreleased folder, which name is the PR number. There, you'll find some examples. As a guide, here you have the TEMPLATE. Don't forget to use the present perfect passive tense!! let us know about any question about this.

  • I see two different commiters (root and corevibe555). In order to be able to merge the PR, every commiter must sign the CLA. As you can see in the CLAassistant message, just one is signed, so the CI system ⬇️ is waiting for it (required).

  • About CI, we use Detekt as static code analyzer. Detekt is marking the PR with a red ❌ (check it below ⬇️ ), because one of the methods you changed exceedes the maximum number of lines. Take a look into it and let us know!

  • As information, every PR has to pass two different stages: a code review that uses to be done by @joragua , and a QA-testing phase, that i will do once code review is approved. During these phases, we can suggest or ask you for changes (always open to discussion). When both CR and QA passes, the PR is merged. Also interesting to know: our branch update method is rebasing, not merging.

Any question about the process, @joragua or myself will be happy to help you!! Don't hesitate to ask!! 😄

@corevibe555
Copy link
Copy Markdown
Author

corevibe555 commented Mar 23, 2026

@jesmrec Thanks for your comment.
I am working on the feedback.

@jesmrec
Copy link
Copy Markdown
Collaborator

jesmrec commented Mar 23, 2026

@jesmrec Thanks for your kind comment.
I am working on these feedback.
As a first time contributor, I will keep in mind for any future contributions.

cool! let us know if you need some help 🚀

@corevibe555 corevibe555 force-pushed the fix/apply-read-permission-to-the-list-of-members branch 2 times, most recently from 6de7461 to 1470da1 Compare March 23, 2026 12:07
@jesmrec
Copy link
Copy Markdown
Collaborator

jesmrec commented Mar 23, 2026

Thanks @corevibe555 for the quick response. New iteration is much better, but still some tiny details to take care of:

  • About the calens file, we might not need a calens entry for the current PR, since it's not released yet. Just add the links to the following calens file: https://github.com/owncloud/android/blob/master/changelog/unreleased/4728, that complies all the features and fixes related with the Members option. Sorry, i did notice that first, and thanks to @joragua for the tip.

  • We also use to reduce the number of commits. For example, this commit could be saved by removing the comment lines from the commit ahead with an interactive rebase (let us know if you need help)

  • I'd mark the detekt commit as refactor instead of a fix, it fits better.

Summing up, this could be the better approach:

  • fix: show members menu without permissions/read -> including your fix candidate
  • chore: add changelog -> add links to 4728 calens file
  • refactor: resolve Detekt issue -> with the Detekt stuff

with this, we could move to code review.

@corevibe555 corevibe555 force-pushed the fix/apply-read-permission-to-the-list-of-members branch from 1470da1 to bf812a9 Compare March 23, 2026 13:45
@corevibe555
Copy link
Copy Markdown
Author

Thanks for the feedback, I've updated the PR.

@jesmrec
Copy link
Copy Markdown
Collaborator

jesmrec commented Mar 23, 2026

Moving to CR. As soon as we are available, we'll review and give you feedback. Thanks!

@jesmrec jesmrec requested a review from joragua March 23, 2026 14:05
@corevibe555 corevibe555 force-pushed the fix/apply-read-permission-to-the-list-of-members branch from 3640413 to bf812a9 Compare March 24, 2026 16:56
@corevibe555
Copy link
Copy Markdown
Author

@joragua Would you please review my PR and give me any feedback so I can complete and pick next issue?

@joragua
Copy link
Copy Markdown
Collaborator

joragua commented Mar 30, 2026

Hi @corevibe555! As mentioned in #4782 (comment), I'm missing the logic for space public links. If the user doesn't have the permission, the Members view should be completely empty (only the space header with the permanent link action should be displayed). Could you update the code and implement this, please? Ping me when it's ready and I'll review your PR! 🙌🏻

@corevibe555 corevibe555 force-pushed the fix/apply-read-permission-to-the-list-of-members branch 3 times, most recently from 758ed0b to 0667c49 Compare March 30, 2026 10:30
@joragua joragua changed the title [FIX] Keep Members entry visible; restrict member list by read permission (#4782) [FIX] Apply read permission to the list of members instead of the main option Mar 30, 2026
Copy link
Copy Markdown
Collaborator

@joragua joragua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job @corevibe555! 💯 Somme comments about your code

@corevibe555 corevibe555 force-pushed the fix/apply-read-permission-to-the-list-of-members branch from 0667c49 to 920ad53 Compare March 30, 2026 19:33
@corevibe555
Copy link
Copy Markdown
Author

Thank you for the review comments. I've made requested changes.

Copy link
Copy Markdown
Collaborator

@joragua joragua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more comment and it's ready to go! @corevibe555

fix: remove updateToolbarTitle() as this is not in the requirement

fix: keep simple UX

refactor: remove updateMembersLoadingProgressVisibility

refactor: resolve code review comment feedback

fix: remove redundant properties
@corevibe555 corevibe555 force-pushed the fix/apply-read-permission-to-the-list-of-members branch from 920ad53 to 5870a78 Compare March 31, 2026 10:49
Copy link
Copy Markdown
Collaborator

@joragua joragua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Moving it to QA 😄

@jesmrec
Copy link
Copy Markdown
Collaborator

jesmrec commented Apr 1, 2026

@corevibe555 your contribution has several conflicts with the current version on the master branch. We have tried to solve them, but the merge commit that was created on your branch by github was not useful because your master was not updated with ours. Could yo remove this commit?

We'll assist you with the conflict solving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Apply read permission to the list of members instead of the main option

4 participants