[FIX] website_mail: access right and xml

bzr revid: chm@openerp.com-20130806090845-xi47tuk6mfekaedr
This commit is contained in:
Christophe Matthieu 2013-08-06 11:08:45 +02:00
parent c0f75a5931
commit f55561d154
2 changed files with 2 additions and 2 deletions

View 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 []

View File

@ -125,7 +125,7 @@
</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>