From b5d4e62e7092a920acc0dabece1adadca4ec777a Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 13 May 2014 18:18:08 -0400 Subject: [PATCH] fixed bug in privileges system, thanks TravisCI! --- src/topics/create.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/topics/create.js b/src/topics/create.js index b121224d05..454ea14d28 100644 --- a/src/topics/create.js +++ b/src/topics/create.js @@ -101,7 +101,7 @@ module.exports = function(Topics) { categoryTools.privileges(cid, uid, next); }, function(privileges, next) { - if(!privileges['topics:create']) { + if(!privileges.meta['topics:create']) { return next(new Error('[[error:no-privileges]]')); } next(); @@ -177,7 +177,7 @@ module.exports = function(Topics) { }, function(privilegesData, next) { privileges = privilegesData; - if (!privileges.write) { + if (!privileges.meta['topics:reply']) { return next(new Error('[[error:no-privileges]]')); } next();