changed: mount points
mount type and mount fs are of type 'int' now they can be added by plugins git-svn-id: svn://ttmath.org/publicrep/winix/trunk@652 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -38,13 +38,13 @@ bool Upload::HasAccess(const Item & item)
|
||||
if( !system->mounts.pmount )
|
||||
return false;
|
||||
|
||||
if( system->mounts.pmount->fs == Mount::simplefs && config->auth_simplefs_dir.empty() )
|
||||
if( system->mounts.pmount->fs == system->mounts.MountFsSimplefs() && config->auth_simplefs_dir.empty() )
|
||||
{
|
||||
log << log1 << "Request: can't use upload function, auth_simplefs_dir must be set in the config file" << logend;
|
||||
return false;
|
||||
}
|
||||
|
||||
if( system->mounts.pmount->fs == Mount::hashfs && config->auth_hashfs_dir.empty() )
|
||||
if( system->mounts.pmount->fs == system->mounts.MountFsHashfs() && config->auth_hashfs_dir.empty() )
|
||||
{
|
||||
log << log1 << "Request: can't use upload function, auth_hashfs_dir must be set in the config file" << logend;
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user