From c0f390322ced18a0e6d5255ae50812508c5a0757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= <baris@nodebb.org> Date: Wed, 2 Aug 2017 18:12:08 -0400 Subject: [PATCH] https://github.com/Schamper/nodebb-plugin-poll/issues/86 --- src/categories/create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);