Bug #264605 --> don't allow drag and drop of virtual folders outside of the account they live under.

sr=bienvenu
This commit is contained in:
scott%scott-macgregor.org 2004-11-01 22:28:11 +00:00
Родитель e1b8213352
Коммит 4afde4246d
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -144,6 +144,10 @@ function CanDropOnFolderTree(index, orientation)
debugDump(sourceFolder.parent.URI + "\n");
return false;
}
// don't allow dragging of virtual folders across accounts
if ((sourceFolder.flags & MSG_FOLDER_FLAG_VIRTUAL) && sourceServer != targetServer)
return false;
var isAncestor = sourceFolder.isAncestorOf(targetFolder);
// don't allow parent to be dropped on its ancestors
@ -177,6 +181,7 @@ function CanDropOnFolderTree(index, orientation)
debugDump("***canCreateSubfolders == false \n");
return false;
}
var serverType = GetFolderAttribute(folderTree, targetResource, "ServerType");
// if we've got a folder that can't be renamed