give guests find read access on category creation

v1.18.x
barisusakli 10 years ago
parent 8b573bff39
commit cb8ce066c8

@ -40,7 +40,8 @@ module.exports = function(Categories) {
async.apply(db.setObject, 'category:' + cid, category),
async.apply(db.sortedSetAdd, 'categories:cid', data.order, cid),
async.apply(privileges.categories.give, defaultPrivileges, cid, 'administrators'),
async.apply(privileges.categories.give, defaultPrivileges, cid, 'registered-users')
async.apply(privileges.categories.give, defaultPrivileges, cid, 'registered-users'),
async.apply(privileges.categories.give, ['find', 'read'], cid, 'guests')
], function(err) {
if (err) {
return callback(err);

Loading…
Cancel
Save