GitHub user richardfogaca edited a discussion: Save/overwrite as admin (not only chart owner)
# Save/overwrite as admin ### Contribution Summary This enhancement allows administrators to save and overwrite any chart in Superset, regardless of ownership. Currently, only chart owners can overwrite their charts, which can be limiting in enterprise environments where administrators need to maintain and update charts on behalf of other users. ### How It Works The implementation adds admin override capabilities to the chart saving functionality by: 1. Extending the `canOverwriteSlice()` method to check for both ownership and admin status 2. Adding admin state management through the ExploreContext 3. Modifying the SaveModal component to handle admin permissions 4. Updating the user API to expose admin status ### Fork with working prototype The implementation is available in this [fork](https://github.com/richardfogaca/superset/tree/save-overwrite-as-admin) ### Screenshot <img width="601" alt="save-overwrite" src="https://github.com/user-attachments/assets/9c28de63-b117-4a22-be28-9e6c227d9fd0" /> ### Why This Matters 1. **Enterprise Readiness**: Large organizations often need administrators to maintain and update charts on behalf of other users 2. **Operational Efficiency**: Reduces the need for ownership transfers or duplicate charts when updates are needed 3. **Security**: Maintains proper access control while providing necessary administrative capabilities 4. **User Experience**: Streamlines the chart management process for administrators without compromising security GitHub link: https://github.com/apache/superset/discussions/33019 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
