Error !

AttributeError: 'NoneType' object has no attribute 'languages'

<div style="position:relative;"> <div class="toolblock ontop" id="langblock" style="left: -102px;top: 38px;"> % for lang in languages: <% # Skip languages we don't have access to if user.languages != None and lang[1] not in user.languages: continue %> % if lang[1] != language:
Products/LimeAPI/pt/admin/header.html, line 112:
<%
/var/limecms/nmh/nmh01/lib/python2.6/site-packages/mako/runtime.py, line 752:
callable_(ctx, **_kwargs_for_include(callable_, context._data, **kwargs))
Products/LimeAPI/pt/admin/workbench.html, line 23:
<%include file="header.html"/>
/var/limecms/nmh/nmh01/lib/python2.6/site-packages/mako/runtime.py, line 890:
callable_(context, *args, **kwargs)
/var/limecms/nmh/nmh01/lib/python2.6/site-packages/mako/runtime.py, line 864:
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
/var/limecms/nmh/nmh01/lib/python2.6/site-packages/mako/runtime.py, line 829:
**_kwargs_for_callable(callable_, data))
/var/limecms/nmh/nmh01/lib/python2.6/site-packages/mako/template.py, line 445:
return runtime._render(self, self.callable_, args, data)
/var/limecms/nmh/nmh01/nmh-inst-02/Products/LimeTemplate/LimeTemplate.py, line 704:
html = mytemplate.render(object=object, site=site, request=self.REQUEST, extra=extra.get('kwargs', None), **extra)