Skip to content

Commit

Permalink
Added basic auth check
Browse files Browse the repository at this point in the history
  • Loading branch information
rubendel committed May 3, 2017
1 parent fa5037e commit b66def9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ public SDownloadResult getDownloadData(final Long topicId) throws ServerExceptio
}

public Long download(DownloadParameters downloadParameters, Boolean sync) throws ServerException, UserException {
requireAuthenticationAndRunningServer();
User user = null;
for (long roid : downloadParameters.getRoids()) {
getAuthorization().canDownload(roid);
Expand Down

0 comments on commit b66def9

Please sign in to comment.