ClientFile: move client_allow_file() into the Client class

This commit is contained in:
Max Kellermann
2014-02-02 13:59:07 +01:00
parent 8cf4fb53aa
commit a8e52ad89f
7 changed files with 19 additions and 52 deletions

View File

@@ -22,7 +22,6 @@
#include "CommandError.hxx"
#include "protocol/Ack.hxx"
#include "protocol/Result.hxx"
#include "client/ClientFile.hxx"
#include "client/Client.hxx"
#include "util/CharUtil.hxx"
#include "util/UriUtil.hxx"
@@ -122,7 +121,7 @@ handle_read_comments(Client &client, gcc_unused int argc, char *argv[])
}
Error error;
if (!client_allow_file(client, path_fs, error))
if (!client.AllowFile(path_fs, error))
return print_error(client, error);
} else if (uri_has_scheme(uri)) {
return read_stream_comments(client, uri);