mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-04 08:28:13 +02:00
Merge remote-tracking branch 'origin/develop' into activitypub
This commit is contained in:
@@ -42,7 +42,6 @@ groupsController.get = async function (req, res, next) {
|
||||
if (!group || groupName === groups.BANNED_USERS) {
|
||||
return next();
|
||||
}
|
||||
group.isOwner = true;
|
||||
|
||||
const groupNameData = groupNames.map(name => ({
|
||||
encodedName: encodeURIComponent(name),
|
||||
|
||||
@@ -72,7 +72,6 @@ groupsController.details = async function (req, res, next) {
|
||||
if (!groupData) {
|
||||
return next();
|
||||
}
|
||||
groupData.isOwner = groupData.isOwner || isAdmin || (isGlobalMod && !groupData.system);
|
||||
|
||||
res.render('groups/details', {
|
||||
title: `[[pages:group, ${groupData.displayName}]]`,
|
||||
|
||||
Reference in New Issue
Block a user