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:
@@ -32,10 +32,10 @@ bool Emacs::HasAccess(const Item & item)
|
||||
if( !system->HasWriteAccess(item) )
|
||||
return false;
|
||||
|
||||
if( !system->mounts.pmount->IsPar(Mount::par_emacs_on) )
|
||||
if( !system->mounts.pmount->IsPar(system->mounts.MountParEmacsOn()) )
|
||||
return true;
|
||||
|
||||
if( system->mounts.pmount->IsArg(Mount::par_emacs_on, request->dir_tab.size()) )
|
||||
if( system->mounts.pmount->IsArg(system->mounts.MountParEmacsOn(), request->dir_tab.size()) )
|
||||
return true;
|
||||
|
||||
return false;
|
||||
@@ -77,7 +77,7 @@ return true;
|
||||
|
||||
void Emacs::PostFunEmacsModifyMountPoint(bool adding)
|
||||
{
|
||||
if( system->mounts.pmount->type == Mount::thread )
|
||||
if( system->mounts.pmount->type == system->mounts.MountTypeThread() )
|
||||
{
|
||||
if( adding )
|
||||
db->EditThreadAddItem(request->dir_tab.back()->id, request->item.id);
|
||||
@@ -85,13 +85,13 @@ void Emacs::PostFunEmacsModifyMountPoint(bool adding)
|
||||
system->RedirectToLastDir();
|
||||
}
|
||||
else
|
||||
if( system->mounts.pmount->type == Mount::ticket )
|
||||
if( system->mounts.pmount->type == system->mounts.MountTypeTicket() )
|
||||
{
|
||||
system->RedirectToLastDir();
|
||||
}
|
||||
else
|
||||
{
|
||||
// Mount::cms
|
||||
// system->mounts.MountTypeCms()
|
||||
system->RedirectTo(request->item);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user