The GitHub Actions job "Required Checks" on 
texera.git/fix/readonly-workflow-description has failed.
Run started by GitHub user xuang7 (triggered by xuang7).

Head commit for run:
bba8b7e8bbe3485039001d1244ee964f8a1a98c0 / Raja-Hamid 
<[email protected]>
fix(frontend): prevent editing description without write access

The list row's editable input only means 'this is the private dashboard view' 
and is hardcoded to true by the container, so it was never an access check. A 
user with READ-only access to a shared workflow could therefore open the 
description editor; the save then failed with the backend's 'No sufficient 
access privilege.'.

Gate description editing on the entry's actual access level:
- add a canEditDescription getter (editable && entry.accessLevel === 'WRITE')
- use it as the guard in onEditDescription()
- hide the Edit Description control and the 'Write a description...' hover 
placeholder for read-only entries

This mirrors the existing dataset list-item pattern (editable && 
entry.accessPrivilege === 'WRITE').

Closes #3497

Report URL: https://github.com/apache/texera/actions/runs/30042711615

With regards,
GitHub Actions via GitBox

Reply via email to