updated upgrade script date

v1.18.x
Julian Lam 11 years ago
parent 4206c17da3
commit ce867aec53

@ -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) {

Loading…
Cancel
Save