Return an error message when commenting or leaving kudos with admin accounts

Description

How to reproduce:

  • Log in as an admin.

  • Pick any work, leave a comment. Your comment sticks.

  • Pick any work, leave kudos. Your kudos stick.

What should happen:
You should see an error message "Please log out of your admin account first!" and the comment/kudos should not be created.

We can use this filter method: https://github.com/otwcode/otwarchive/blob/b3c9f726a879b754c84a960d1611f0037dcef0f4/app/controllers/application_controller.rb#L290-L295.

Note: We should also remove admin-specific code on the comment form.

Environment

None

Assignee

Unassigned

Reporter

redsummernight

Roadmap

Admin

Priority

Medium

Affects versions

Fix versions

None

Components

BackEnd

Difficulty

Medium

Required Access Level

Admin

Milestone

Internal 0.9
Configure