Error !

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

% endfor % endif % if user.userid != 'None': ${ user } <!-- ${checks} --> % endif
templates/snapper/snapper-status, line 393:
% if user.userid != 'None':
templates/snapper/site, line 114:
${self.main_content(root)}
/srv/limefivedata/limecms/snapper/snapper01/local/lib/python2.7/site-packages/Mako-0.9.0-py2.7.egg/mako/runtime.py, line 865:
callable_(context, *args, **kwargs)
/srv/limefivedata/limecms/snapper/snapper01/local/lib/python2.7/site-packages/Mako-0.9.0-py2.7.egg/mako/runtime.py, line 839:
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
/srv/limefivedata/limecms/snapper/snapper01/local/lib/python2.7/site-packages/Mako-0.9.0-py2.7.egg/mako/runtime.py, line 807:
**_kwargs_for_callable(callable_, data))
/srv/limefivedata/limecms/snapper/snapper01/local/lib/python2.7/site-packages/Mako-0.9.0-py2.7.egg/mako/template.py, line 443:
return runtime._render(self, self.callable_, args, data)
/var/limecms/snapper/snapper01/snapper-inst/Products/LimeTemplate/LimeTemplate.py, line 704:
html = mytemplate.render(object=object, site=site, request=self.REQUEST, extra=extra.get('kwargs', None), **extra)