mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-10 18:15:18 -04:00
automatically add moderator rights to the owner of a forum
This commit is contained in:
parent
ac146c6808
commit
e09b416674
5 changed files with 14 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue