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:
@@ -51,7 +51,7 @@ bool Rm::HasAccess(const Item & item)
|
||||
return false;
|
||||
}
|
||||
|
||||
if( system->mounts.pmount->IsPar(Mount::par_only_root_remove) )
|
||||
if( system->mounts.pmount->IsPar(system->mounts.MountParOnlyRootRemove()) )
|
||||
if( !request->session->puser || !request->session->puser->super_user )
|
||||
return false;
|
||||
|
||||
@@ -205,10 +205,10 @@ void Rm::RemoveFile()
|
||||
|
||||
plugin.Call(WINIX_FILE_REMOVED, request->item.id);
|
||||
|
||||
if( system->mounts.pmount->type == Mount::thread )
|
||||
if( system->mounts.pmount->type == system->mounts.MountTypeThread() )
|
||||
db->EditThreadRemoveItem(request->item.parent_id);
|
||||
else
|
||||
if( system->mounts.pmount->type == Mount::ticket )
|
||||
if( system->mounts.pmount->type == system->mounts.MountTypeTicket() )
|
||||
db->EditTicketRemoveItem(request->item.id);
|
||||
|
||||
if( request->item.auth != Item::auth_none )
|
||||
|
Reference in New Issue
Block a user