Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

permission: Don't show the edit button if read-only #8693

Merged
merged 1 commit into from Apr 16, 2024

Conversation

hfiguiere
Copy link
Contributor

@hfiguiere hfiguiere commented Apr 3, 2024

If wopi.UserCanWrite tells us we can't write the file no reason to show the edit button that would do nothing anyway.

Fix #8686

Change-Id: I4f6d1f8d8be520e422e260f2e532cb86541e8d0f

Summary

TODO

  • ...

Checklist

  • Code is properly formatted
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

@hfiguiere hfiguiere changed the title permission: Don't show the edit but if read-only permission: Don't show the edit button if read-only Apr 3, 2024
@Darshan-upadhyay1110
Copy link
Contributor

Darshan-upadhyay1110 commented Apr 4, 2024

@hfiguiere
Not sure if my commit is related or nor but i had added same thing yesterday for read-only mode. But it was for mobile view
f31af77

@hfiguiere
Copy link
Contributor Author

@hfiguiere Not sure if my commit is related or nor but i had added same thing yesterday for read-only mode. But it was for mobile view f31af77

I saw it yesterday and it's not related.

@hfiguiere
Copy link
Contributor Author

I think it might break with mobile.

@hfiguiere
Copy link
Contributor Author

I think it might break with mobile.

Updated the PR

@hfiguiere hfiguiere requested a review from caolanm April 4, 2024 11:54
Copy link
Contributor

@caolanm caolanm left a comment

Choose a reason for hiding this comment

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

looks ok, if you can get it to pass ci

@hfiguiere
Copy link
Contributor Author

The same error occur on master, locally.

@hfiguiere
Copy link
Contributor Author

The same error occur on master, locally.

#8768

If wopi.UserCanWrite tells us we can't write the file no reason to show the edit button
that would do nothing anyway.

Fix #8686

Signed-off-by: Hubert Figuière <hub@collabora.com>
Change-Id: I4f6d1f8d8be520e422e260f2e532cb86541e8d0f
@caolanm caolanm merged commit 6a8e00c into master Apr 16, 2024
14 checks passed
@caolanm caolanm deleted the private/hub/issue-8686 branch April 16, 2024 15:44
@caolanm
Copy link
Contributor

caolanm commented Apr 16, 2024

passes ci now at least

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

UserCanWrite = false and UserCanNotWriteRelative = true still offer the edit button
5 participants