Skip to content

Allow admins to edit and delete member notes #2276

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

Conversation

davidmillen50
Copy link
Contributor

Added a modal for admins to edit notes posted to a member's profile

Added a modal for admins to edit notes posted to a member's profile
@davidmillen50 davidmillen50 changed the title Feat: add member not editing on members page Allow admins to edit and delete member notes Aug 13, 2025
Ensure only admins can update and delete member notes
Copy link
Contributor

@mroderick mroderick left a comment

Choose a reason for hiding this comment

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

Great work!

if @note.destroy
flash[:notice] = 'Note deleted successfully.'
else
flash[:alert] = 'Failed to delete the note.'
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems a bit more natural to me without the.

Suggested change
flash[:alert] = 'Failed to delete the note.'
flash[:alert] = 'Failed to delete note.'

@jonodrew
Copy link
Contributor

Does this replicate #2208?

@davidmillen50
Copy link
Contributor Author

yes

@davidmillen50
Copy link
Contributor Author

duplicates #2208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants