Tidy up error handling in the message controller, and make it redirect to
the login page if you are logged in as the wrong user. Closes #1569.
This commit is contained in:
parent
938cbcd862
commit
b90567e197
3 changed files with 43 additions and 21 deletions
2
app/views/message/no_such_message.html.erb
Normal file
2
app/views/message/no_such_message.html.erb
Normal file
|
@ -0,0 +1,2 @@
|
|||
<h1><%= t'message.no_such_message.heading' %></h1>
|
||||
<p><%= t'message.no_such_message.body' %></p>
|
Loading…
Add table
Add a link
Reference in a new issue