automatically add moderator rights to the owner of a forum

This commit is contained in:
csoler 2018-12-24 11:44:57 +01:00
parent ac146c6808
commit e09b416674
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
5 changed files with 14 additions and 9 deletions

View file

@ -74,6 +74,10 @@ struct RsGxsForumGroup : RsSerializable
RS_SERIAL_PROCESS(mAdminList);
RS_SERIAL_PROCESS(mPinnedPosts);
}
// utility functions
bool canEditPosts(const RsGxsId& id) const { return mAdminList.ids.find(id) != mAdminList.ids.end() || id == mMeta.mAuthorId; }
};
struct RsGxsForumMsg : RsSerializable