codeant-ai-for-open-source[bot] commented on code in PR #44179:
URL: https://github.com/apache/superset/pull/44179#discussion_r4007104400
##########
superset-frontend/src/pages/ArchivedList/index.tsx:
##########
@@ -187,11 +188,13 @@ function ArchivedListBody({
[],
baseFilters,
);
+ // Restore and purge both require the selected resource's write permission.
+ const canWrite = hasPerm('can_write');
Review Comment:
✅ **Customized review instruction saved!**
**Instruction:**
> Do not require per-object action gating when archived list endpoints do
not provide editor/owner data; retain the class-level write-permission gate and
rely on server-side editorship checks.
**Applied to:**
- `superset-frontend/src/pages/ArchivedList/index.tsx`
---
💡 *To manage or update this instruction, visit: [CodeAnt AI
Settings](https://app.codeant.ai/org/settings/learnings)*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]