Skip to content

Commit

Permalink
Fixed: Search history next to search box didn't work with authorizati…
Browse files Browse the repository at this point in the history
…on. Closes #539
  • Loading branch information
[email protected] authored and [email protected] committed Feb 7, 2017
1 parent 10ba2bf commit 614db06
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# NZB Hydra changelog

----------
### 0.2.197
Fixed: Search history next to search box didn't work with authorization. See [#539](https://github.com/theotherp/nzbhydra/issues/539).

### 0.2.196
Fixed: When running as a windows service updating would fail. For this to work you need to update manually (shutdown Hydra and overwrite all files from the latest ZIP) and change the user with which the service is started. Open the service administration, select the NZBHydra service,
open its properties and in the second tab enter your windows account username and password. Restart the service. The next update should work. See [#536](https://github.com/theotherp/nzbhydra/issues/536).
Expand Down
4 changes: 2 additions & 2 deletions nzbhydra/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,8 +1053,8 @@ class SearchHistoryFilterSchema(Schema):
@requires_auth("main")
def internalapi_search_requestsforsearching():
limitToUser = None
if "user" in session.keys():
limitToUser = session["user"] and session["user"].username is not None
if "user" in session.keys() and session["user"] and session["user"].username is not None:
limitToUser = session["user"].username
filterModel = {"access": {"filter": True, "filtertype": "boolean"}}
return jsonify(get_search_requests(1, 20, sortModel=None, filterModel=filterModel, distinct=True, onlyUser=limitToUser))

Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.196
0.2.197

0 comments on commit 614db06

Please sign in to comment.