|
|
@ -79,6 +79,7 @@ module.exports = function (Categories) {
|
|
|
|
async.apply(privileges.categories.give, defaultPrivileges, category.cid, 'administrators'),
|
|
|
|
async.apply(privileges.categories.give, defaultPrivileges, category.cid, 'administrators'),
|
|
|
|
async.apply(privileges.categories.give, defaultPrivileges, category.cid, 'registered-users'),
|
|
|
|
async.apply(privileges.categories.give, defaultPrivileges, category.cid, 'registered-users'),
|
|
|
|
async.apply(privileges.categories.give, ['find', 'read', 'topics:read'], category.cid, 'guests'),
|
|
|
|
async.apply(privileges.categories.give, ['find', 'read', 'topics:read'], category.cid, 'guests'),
|
|
|
|
|
|
|
|
async.apply(privileges.categories.give, ['find', 'read', 'topics:read'], category.cid, 'spiders'),
|
|
|
|
], next);
|
|
|
|
], next);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
function (results, next) {
|
|
|
|
function (results, next) {
|
|
|
|