1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-01-30 22:13:01 +00:00
This commit is contained in:
Pierre HUBERT 2020-07-06 17:33:04 +02:00
parent e0101fb3b8
commit 6b9c9079c8

View File

@ -414,7 +414,7 @@ pub fn respond_request(group_id: &GroupID, user_id: &UserID, accept: bool) -> Re
} }
} }
/// check out whether a user can create posts on a group or not /// Check out whether a user can create posts on a group or not
pub fn can_user_create_posts(group_id: &GroupID, user_id: &UserID) -> ResultBoxError<bool> { pub fn can_user_create_posts(group_id: &GroupID, user_id: &UserID) -> ResultBoxError<bool> {
let membership_level = get_membership_level(group_id, user_id.as_option())?; let membership_level = get_membership_level(group_id, user_id.as_option())?;