diff options
author | MrYummy <elemental428@gmail.com> | 2017-06-16 21:19:13 +0200 |
---|---|---|
committer | MrYummy <elemental428@gmail.com> | 2017-06-16 21:19:13 +0200 |
commit | 4e8d94a7b63dc9e4c0002404e8a385e9bf7fa1a2 (patch) | |
tree | 904faa13dad11b5ab4e0a72bc815f7a801a19d1b | |
parent | f60edea1beab3daf7c58f9d463d6fcdfb633061e (diff) |
see previous commit
-rw-r--r-- | app/views/messages/index.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/messages/index.html.erb b/app/views/messages/index.html.erb index 82f6154..54a9348 100644 --- a/app/views/messages/index.html.erb +++ b/app/views/messages/index.html.erb @@ -4,7 +4,7 @@ <%= link_to "Create new message", new_message_path, class: "btn blue right" %> <br> <h2> - <% if Message.where("user_target_id = ? OR user_sender_id = ?", current_user.id, current_user.id).any? %> + <% if Message.where("(user_target_id = ? OR user_sender_id = ?) AND user_hidden_id != ?", current_user.id, current_user.id, current_user.id).any? %> Your private messages: <% else %> You have no private messages. |