1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-30 01:06:27 +00:00

Fix missing check

This commit is contained in:
Pierre HUBERT 2020-07-09 13:29:59 +02:00
parent 05b743fa36
commit 0aa6c0193f

View File

@ -87,6 +87,7 @@ fn get_list(friend_query: &GetFriendsQuery) -> ResultBoxError<Vec<Friend>> {
pub fn get_list_that_allow_posts_from_user(user_id: &UserID) -> ResultBoxError<Vec<UserID>> { pub fn get_list_that_allow_posts_from_user(user_id: &UserID) -> ResultBoxError<Vec<UserID>> {
database::QueryInfo::new(FRIENDS_TABLE) database::QueryInfo::new(FRIENDS_TABLE)
.cond_legacy_bool("autoriser_post_page", true) .cond_legacy_bool("autoriser_post_page", true)
.cond_legacy_bool("actif", true)
.cond_user_id("ID_amis", user_id) .cond_user_id("ID_amis", user_id)
.add_field("ID_personne as user_id") .add_field("ID_personne as user_id")
.exec(|r| r.get_user_id("user_id")) .exec(|r| r.get_user_id("user_id"))