From d1c51370a79867089f002a0b61cc3c6eb0680d08 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 18 Aug 2012 16:10:52 +0200 Subject: Fix view user_visible_lazychat_messages; adapt Lafargue implementation. --- migrations/3_fix_lazychat_message_visibility.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 migrations/3_fix_lazychat_message_visibility.sql (limited to 'migrations') diff --git a/migrations/3_fix_lazychat_message_visibility.sql b/migrations/3_fix_lazychat_message_visibility.sql new file mode 100644 index 0000000..4af6b30 --- /dev/null +++ b/migrations/3_fix_lazychat_message_visibility.sql @@ -0,0 +1,7 @@ +CREATE OR REPLACE VIEW user_visible_lazychat_messages AS + SELECT eur.user, t.message + FROM effective_user_roles eur, lazychat_targets t + WHERE t.target = eur.role + UNION + SELECT m.author, m.message + FROM lazychat_messages m; -- cgit v1.2.3