Skip to content

Commit

Permalink
Remove deleted registration forms from ACLs
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtwist authored and ThiefMaster committed Oct 26, 2021
1 parent e89d355 commit df064f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Bugfixes
- Fix translations not being taken into account in some places (:issue:`5073`, :pr:`5105`)
- Use correct/consistent field order for personal data fields in newly created
registration forms
- Remove deleted registration forms from ACLs (:issue:`5130`, :pr:`5131`, thanks
:user:`jbtwist`)


Version 3.0.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ class RHRegistrationFormDelete(RHManageRegFormBase):
"""Delete a registration form."""

def _process(self):
rels = ('in_attachment_acls', 'in_attachment_folder_acls', 'in_contribution_acls', 'in_event_acls',
'in_session_acls')
for rel in rels:
getattr(self.regform, rel).delete()
self.regform.is_deleted = True
signals.event.registration_form_deleted.send(self.regform)
flash(_('Registration form deleted'), 'success')
Expand Down

0 comments on commit df064f0

Please sign in to comment.