[FIX] website_mail: access right and xml
authorChristophe Matthieu <chm@openerp.com>
Tue, 6 Aug 2013 09:08:45 +0000 (11:08 +0200)
committerChristophe Matthieu <chm@openerp.com>
Tue, 6 Aug 2013 09:08:45 +0000 (11:08 +0200)
bzr revid: chm@openerp.com-20130806090845-xi47tuk6mfekaedr

addons/website_mail/controllers/main.py
addons/website_mail/views/website_mail.xml

index 37178f0..971934a 100644 (file)
@@ -32,7 +32,7 @@ class website_mail(http.Controller):
 
         if request.uid != request.public_uid and mail_group_id:
             message_follower_ids = group_obj.read(request.cr, request.uid, [mail_group_id], ['message_follower_ids'])[0]['message_follower_ids']
-            parent_id = user_obj.browse(request.cr, request.uid, request.uid).partner_id.id
+            parent_id = user_obj.browse(request.cr, SUPERUSER_ID, request.uid).partner_id.id
             values['subscribe'] = parent_id in message_follower_ids
 
         domain = mail_group_id and [("res_id", "=", mail_group_id)] or []
index 92c0126..3c7a577 100644 (file)
                                         </small>
                                         <small class="pull-right muted text-right">
                                             <div t-field="blog.author_id"/>
-                                            <div t-field="blog.author_id"/>
+                                            <div t-field="blog.date"/>
                                         </small>
                                     </div>
                                 </div>