From 49e289e0fd235c720969a638e79a4b045316b4f0 Mon Sep 17 00:00:00 2001 From: Fu Matthew Date: Thu, 3 Jan 2013 20:07:05 +0800 Subject: [PATCH] fixing default widget error when needs image --- app/models/module_app.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/models/module_app.rb b/app/models/module_app.rb index b3eb4f1ba..d0cd88863 100644 --- a/app/models/module_app.rb +++ b/app/models/module_app.rb @@ -32,9 +32,10 @@ class ModuleApp #>>>>>>>>>>>>> remove after app config applied def get_default_widget - {:query=>'Bulletin.all',:image=>nil} + {:query=>'Bulletin.all',:image=> 'image'} end - #<<<<<<<<<<<< + #<<<<<<<<<<<<@@ + def is_manager?(user) managing_users.include?(user)