Skip to content

Commit

Permalink
fixes #34
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Jun 24, 2013
1 parent a0751d6 commit bbee8e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ fs.readFile(path.join(__dirname, 'config.json'), function(err, data) {
});

// Hardcoding uid 1 as an admin
//RDB.sadd('administrators', 1);
var user = require('./src/user.js');
user.makeAdministrator(1);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ var utils = require('./../public/src/utils.js'),
'reputation': 0,
'postcount': 0,
'lastposttime': 0,
'administrator': 0
'administrator': (uid==1)?1:0
});

RDB.set('username:' + username + ':uid', uid);
Expand Down

0 comments on commit bbee8e9

Please sign in to comment.