##// END OF EJS Templates
search-bar: forbid anonymous users to search
marcink -
r2776:5a351218 default
parent child Browse files
Show More
@@ -303,9 +303,11 b' class HomeView(BaseAppView):'
303 303 res.append(serialized_repo)
304 304
305 305 # TODO(marcink): permissions for that ?
306 users = self._get_user_list(query)
307 for serialized_user in users:
308 res.append(serialized_user)
306 allowed_user_search = self._rhodecode_user.username != User.DEFAULT_USER
307 if allowed_user_search:
308 users = self._get_user_list(query)
309 for serialized_user in users:
310 res.append(serialized_user)
309 311
310 312 commits = self._get_hash_commit_list(c.auth_user, query)
311 313 if commits:
General Comments 0
You need to be logged in to leave comments. Login now