mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-21 11:52:01 +01:00
fix: spec
This commit is contained in:
@@ -9,7 +9,6 @@ const user = require('../user');
|
||||
const helpers = require('./helpers');
|
||||
const pagination = require('../pagination');
|
||||
const privileges = require('../privileges');
|
||||
const translator = require('../translator');
|
||||
|
||||
const groupsController = module.exports;
|
||||
|
||||
@@ -73,7 +72,7 @@ groupsController.details = async function (req, res, next) {
|
||||
return next();
|
||||
}
|
||||
groupData.isOwner = groupData.isOwner || isAdmin || (isGlobalMod && !groupData.system);
|
||||
groupData.userTitleEscaped = translator.escape(groupData.userTitle);
|
||||
|
||||
res.render('groups/details', {
|
||||
title: '[[pages:group, ' + groupData.displayName + ']]',
|
||||
group: groupData,
|
||||
|
||||
Reference in New Issue
Block a user