mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-30 01:06:27 +00:00
Implement missing feature
This commit is contained in:
parent
1850ca0626
commit
4e343041d4
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
use crate::data::error::ResultBoxError;
|
use crate::data::error::ResultBoxError;
|
||||||
use crate::data::group_id::GroupID;
|
use crate::data::group_id::GroupID;
|
||||||
|
use crate::data::user::UserID;
|
||||||
use crate::helpers::{account_helper, groups_helper};
|
use crate::helpers::{account_helper, groups_helper};
|
||||||
use crate::utils::virtual_directories_utils::check_virtual_directory;
|
use crate::utils::virtual_directories_utils::check_virtual_directory;
|
||||||
|
|
||||||
@ -20,8 +21,10 @@ pub fn check_availability(dir: &str, target_id: u64, target_type: VirtualDirType
|
|||||||
|
|
||||||
match target_type {
|
match target_type {
|
||||||
VirtualDirType::USER => {
|
VirtualDirType::USER => {
|
||||||
// TODO : implement this check
|
Ok(
|
||||||
unimplemented!();
|
account_helper::check_user_directory_availability(dir, Some(UserID::new(target_id)))? &&
|
||||||
|
groups_helper::check_directory_availability(dir, None)?
|
||||||
|
)
|
||||||
}
|
}
|
||||||
VirtualDirType::GROUP => {
|
VirtualDirType::GROUP => {
|
||||||
Ok(
|
Ok(
|
||||||
|
Loading…
Reference in New Issue
Block a user