Merge branch 'master' of https://git.heroku.com/safe-atoll-23973
This commit is contained in:
@@ -352,6 +352,12 @@ userDB = (DB) => {
|
||||
return g ? g.isPrivate : false;
|
||||
}
|
||||
|
||||
DB.isGroupNewsOnly = async (groupid) => {
|
||||
if(userProfileCache[groupid]) return userProfileCache[groupid].newsOnly;
|
||||
let g = await DB.getGroup(groupid);
|
||||
return g ? g.newsOnly : false;
|
||||
}
|
||||
|
||||
DB.isOwnerOfGroup = async (profileid, groupid) => {
|
||||
let profile = await DB.getProfileCache(profileid);
|
||||
let group = userProfileCache[groupid] ? userProfileCache[groupid] : await DB.getGroup(groupid);
|
||||
|
||||
Reference in New Issue
Block a user