Skip to content

Fix Read Only Projects - #2581

Merged
aglinxinyuan merged 1 commit into
masterfrom
xinyuan-fix-readonly-projects
Apr 8, 2024
Merged

aglinxinyuan merged 1 commit into
masterfrom
xinyuan-fix-readonly-projects

Conversation

@aglinxinyuan

@aglinxinyuan aglinxinyuan commented Apr 8, 2024 •

Copy link
Copy Markdown
Contributor

This PR fixes issue #2565: Frontend did not check the access, causing users with any access to “remove,” “add,” or “modify” workflows in projects, regardless of what access it has.

Project sharing was introduced in PR #1938. Projects can be shared with permission from both read and write.

Public projects will be shared with read permission and introduced in PR #2044.

After this fix, the create, upload, add, and remove buttons will be disabled in read-only projects.

image

@aglinxinyuan aglinxinyuan self-assigned this Apr 8, 2024

@Yicong-Huang Yicong-Huang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@aglinxinyuan
aglinxinyuan merged commit 956bbc5 into master Apr 8, 2024
@aglinxinyuan
aglinxinyuan deleted the xinyuan-fix-readonly-projects branch April 8, 2024 03:49
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
This PR fixes issue apache#2565: Frontend did not check the access, causing
users with any access to “remove,” “add,” or “modify” workflows in
projects, regardless of what access it has.

Project sharing was introduced in PR apache#1938. Projects can be shared with
permission from both read and write.

Public projects will be shared with read permission and introduced in PR
apache#2044.

After this fix, the create, upload, add, and remove buttons will be
disabled in read-only projects.


![image](https://github.com/Texera/texera/assets/11544314/97b7c090-f784-4ad3-9661-835c22702def)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants