mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
updated upgrade script date
This commit is contained in:
@@ -17,7 +17,6 @@ CategoryTools.privileges = function(cid, uid, callback) {
|
||||
"+r": function(next) {
|
||||
var key = 'cid:' + cid + ':privileges:+r';
|
||||
Groups.exists(key, function(err, exists) {
|
||||
console.log(key, exists);
|
||||
if (exists) {
|
||||
Groups.isMember(uid, key, next);
|
||||
} else {
|
||||
|
||||
@@ -60,7 +60,6 @@ Controllers.home = function(req, res, next) {
|
||||
|
||||
function canSee(category, next) {
|
||||
categoryTools.privileges(category.cid, ((req.user) ? req.user.uid || 0 : 0), function(err, privileges) {
|
||||
console.log(category.cid, privileges);
|
||||
next(!err && privileges.read);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ var db = require('./database'),
|
||||
schemaDate, thisSchemaDate,
|
||||
|
||||
// IMPORTANT: REMEMBER TO UPDATE VALUE OF latestSchema
|
||||
latestSchema = Date.UTC(2014, 2, 19, 20);
|
||||
latestSchema = Date.UTC(2014, 2, 21);
|
||||
|
||||
Upgrade.check = function(callback) {
|
||||
db.get('schemaDate', function(err, value) {
|
||||
@@ -335,7 +335,7 @@ Upgrade.upgrade = function(callback) {
|
||||
}
|
||||
},
|
||||
function(next) {
|
||||
thisSchemaDate = Date.UTC(2014, 2, 19, 20);
|
||||
thisSchemaDate = Date.UTC(2014, 2, 21);
|
||||
|
||||
if (schemaDate < thisSchemaDate) {
|
||||
db.getObject('group:gid', function(err, mapping) {
|
||||
|
||||
Reference in New Issue
Block a user