mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-06 07:40:43 +01:00
Merge branch 'master' of https://github.com/designcreateplay/NodeBB into pagination
This commit is contained in:
@@ -378,7 +378,7 @@
|
||||
checkConditional(namespace + d, data[d]);
|
||||
checkConditional('!' + namespace + d, !data[d]);
|
||||
|
||||
if (blockInfo) {
|
||||
if (blockInfo && blockInfo.iterator) {
|
||||
checkConditional('@first', blockInfo.iterator === 0);
|
||||
checkConditional('!@first', blockInfo.iterator !== 0);
|
||||
checkConditional('@last', blockInfo.iterator === blockInfo.total);
|
||||
|
||||
@@ -306,6 +306,11 @@ Upgrade.upgrade = function(callback) {
|
||||
updatesMade = true;
|
||||
|
||||
Groups.getByGroupName('Administrators', {}, function(err, groupObj) {
|
||||
if (err && err.message === 'gid-not-found') {
|
||||
winston.info('[2014/1/23] Updating Administrators Group -- skipped');
|
||||
return next();
|
||||
}
|
||||
|
||||
Groups.update(groupObj.gid, {
|
||||
name: 'administrators',
|
||||
hidden: '1'
|
||||
|
||||
Reference in New Issue
Block a user