updated upgrade script date

This commit is contained in:
Julian Lam
2014-03-21 09:16:24 -04:00
parent 4206c17da3
commit ce867aec53
3 changed files with 2 additions and 4 deletions

View File

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

View File

@@ -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);
});
}

View File

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