Browse Source
Update to APIResult
Co-authored-by: Daniel García <dani-garcia@users.noreply.github.com>
pull/2667/head
Maximilian Fijak
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/api/core/organizations.rs
|
|
@ -1763,7 +1763,7 @@ impl GroupRequest { |
|
|
|
pub fn to_group(&self, organizations_uuid: &str) -> Result<Group, String> { |
|
|
|
let access_all_value = match self.AccessAll { |
|
|
|
Some(value) => value, |
|
|
|
_ => return Err(String::from("Could not convert GroupRequest to Group, because AccessAll has no value!")), |
|
|
|
_ => err!("Could not convert GroupRequest to Group, because AccessAll has no value!"), |
|
|
|
}; |
|
|
|
|
|
|
|
Ok(Group::new(organizations_uuid.to_owned(), self.Name.clone(), access_all_value, self.ExternalId.clone())) |
|
|
|