added: new winix function: "sort"
sorting items in a directory (Item::sort_index is used) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@754 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -402,6 +402,7 @@ bool System::DirsHaveReadExecPerm()
|
||||
|
||||
|
||||
// if we don't have access we only remove the item from the table
|
||||
// !! moze zamienic nazwe na CheckReadAccessToItems ?
|
||||
void System::CheckAccessToItems(std::vector<Item> & item_tab)
|
||||
{
|
||||
size_t i = 0;
|
||||
@@ -420,6 +421,23 @@ size_t i = 0;
|
||||
}
|
||||
|
||||
|
||||
void System::CheckWriteAccessToItems(std::vector<Item> & item_tab)
|
||||
{
|
||||
size_t i = 0;
|
||||
|
||||
while( i < item_tab.size() )
|
||||
{
|
||||
if( !HasWriteAccess(item_tab[i]) )
|
||||
{
|
||||
item_tab.erase(item_tab.begin() + i);
|
||||
}
|
||||
else
|
||||
{
|
||||
i += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool System::CanUseHtml(long user_id)
|
||||
{
|
||||
|
Reference in New Issue
Block a user