Error while searching user in admin view

Hi.

Pro 6.02 version.
When searching for a user, i have a server hiccup and this log

seahub_django_request.log

2016-11-12 06:52:02,444 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /useradmin/search/
Traceback (most recent call last):
  File "/home/cc/seafile/seafile-pro-server-6.0.2/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/cc/seafile/seafile-pro-server-6.0.2/seahub/seahub/auth/decorators.py", line 27, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/home/cc/seafile/seafile-pro-server-6.0.2/seahub/seahub/base/decorators.py", line 26, in _decorated
    return func(request, *args, **kwargs)
  File "/home/cc/seafile/seafile-pro-server-6.0.2/seahub/seahub/views/sysadmin.py", line 1510, in user_search
    'extra_user_roles': extra_user_roles,
UnboundLocalError: local variable 'extra_user_roles' referenced before assignment

It only occurs if the search string does not have any results. When there are results, there is no error

Cf. this issue for more context ; Errors after upgrading to 6.02 Pro Server - #7 by gauburtin

regards,
gautier

We have fixed this bug, code changes will be included in the next release.

Thanks for reporting.

Hello @lian,

Is it solved on 6.0.4 (generic version)?
Thank you in advance.

Regards,
R0den