added it_rename_shared_file test

This commit is contained in:
Peter Papp
2021-03-10 11:02:05 +01:00
parent 8a4ffd03c6
commit 1126a45524
5 changed files with 76 additions and 16 deletions
+12
View File
@@ -220,6 +220,17 @@ function is_editor($shared)
return $shared->permission === 'editor';
}
/**
* Check if shared permission is visitor
*
* @param $shared
* @return bool
*/
function is_visitor($shared)
{
return $shared->permission === 'visitor';
}
/**
* Store user avatar to storage
*
@@ -419,6 +430,7 @@ function appeared_once($arr)
/**
* @param $folders
* @param string $by_column
* @return array
*/
function filter_folders_ids($folders, $by_column = 'id')