From b3dd05f5ab7141bb2661294332ac084e5885dc1e Mon Sep 17 00:00:00 2001
From: tekay <tom.kaesler@mni.thm.de>
Date: Tue, 12 Jan 2016 20:09:21 +0100
Subject: [PATCH] change motd views for students/tutors to also grab
 loggedIn-motds

---
 src/main/resources/views/motd | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/views/motd b/src/main/resources/views/motd
index 33bb7a0..64edb38 100644
--- a/src/main/resources/views/motd
+++ b/src/main/resources/views/motd
@@ -9,10 +9,10 @@
 			"map":"function(doc) { if (doc.type == 'motd' && doc.audience != 'session') { emit(1, doc);}}"
 		},
 		"for_students":{
-			"map":"function(doc) { if (doc.type == 'motd' && doc.audience == 'students') { emit(1, doc);}}"
+			"map":"function(doc) { if (doc.type == 'motd' && (doc.audience == 'students' || doc.audience == 'loggedIn')) { emit(1, doc);}}"
 		},
 		"for_tutors":{
-			"map":"function(doc) { if (doc.type == 'motd' && doc.audience == 'tutors') { emit(1, doc);}}"
+			"map":"function(doc) { if (doc.type == 'motd' && (doc.audience == 'tutors' || doc.audience == 'loggedIn')) { emit(1, doc);}}"
 		},
 		"for_all":{
 			"map":"function(doc) { if (doc.type == 'motd' && doc.audience == 'all') { emit(1, doc);}}"
-- 
GitLab