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

👔(dashboard) disallow delete action for consents in admin. #347

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

ssorin
Copy link
Collaborator

@ssorin ssorin commented Jan 20, 2025

Purpose

In admin, the deletion of validated and revoked consents must not be allowed.

Proposal

  • add has_delete_permission method to disable the delete action for all users in the Consent admin
  • add tests to ensure deletion is disallowed
  • update the changelog

@ssorin ssorin added improvement needs review WIP dashboard Item related to the Dashboard service labels Jan 20, 2025
@ssorin ssorin self-assigned this Jan 20, 2025
@ssorin ssorin requested a review from jmaupetit January 20, 2025 13:52
@ssorin ssorin marked this pull request as ready for review January 20, 2025 13:52
Copy link
Member

@jmaupetit jmaupetit left a comment

Choose a reason for hiding this comment

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

Added `has_delete_permission` method to disable the delete action for all users in the Consent admin.
Included tests to ensure deletion is disallowed for existing objects and when no object is passed.
Updated the changelog accordingly.
@ssorin ssorin force-pushed the feature/dashboard/remove-delete-action-in-admin branch from bfcfb16 to ffe721a Compare January 21, 2025 14:44
@ssorin ssorin merged commit e3e39bf into main Jan 21, 2025
10 checks passed
@ssorin ssorin deleted the feature/dashboard/remove-delete-action-in-admin branch January 21, 2025 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dashboard Item related to the Dashboard service improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants