add a 'backoffice' variable for site template

This commit is contained in:
Frédéric Péters 2013-04-24 17:12:42 +02:00
parent 523acb042d
commit a014cc08d4
1 changed files with 4 additions and 0 deletions

View File

@ -860,6 +860,10 @@ class AlternateRootDirectory(OldRootDirectory):
self.announces()
'</div>'
user = get_request().user
if user and user.can_go_in_backoffice():
get_response().filter['backoffice'] = True
def services [html] (self):
template.html_top()
get_response().filter['bigdiv'] = 'rub_service'