Skip to content

Node.js based forum software built for the modern web

https://github.com/Schamper/nodebb-plugin-poll/issues/86

Barış Soner Uşaklıc0f390322ced
diff --git a/src/categories/create.js b/src/categories/create.js
index e489bfa815..d4a74084d9 100644
--- a/src/categories/create.js
+++ b/src/categories/create.js
@@ -156,7 +156,7 @@ module.exports = function (Categories) {
async.waterfall([
function (next) {
plugins.fireHook('filter:categories.copyPrivilegesFrom', {
- privileges: privileges.privilegeList,
+ privileges: privileges.privilegeList.slice(),
fromCid: fromCid,
toCid: toCid,
}, next);