##// 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 res.append(serialized_repo)
303 res.append(serialized_repo)
304
304
305 # TODO(marcink): permissions for that ?
305 # TODO(marcink): permissions for that ?
306 users = self._get_user_list(query)
306 allowed_user_search = self._rhodecode_user.username != User.DEFAULT_USER
307 for serialized_user in users:
307 if allowed_user_search:
308 res.append(serialized_user)
308 users = self._get_user_list(query)
309 for serialized_user in users:
310 res.append(serialized_user)
309
311
310 commits = self._get_hash_commit_list(c.auth_user, query)
312 commits = self._get_hash_commit_list(c.auth_user, query)
311 if commits:
313 if commits:
General Comments 0
You need to be logged in to leave comments. Login now