I found a bug about deep_clone
winnieBear opened this issue · comments
for the past few days, I had been exhausting myself to find the reason why I can not create a new topic in your demo of "blog", finally, I found the reason --- the function of "deep_clone" (./framework/lib/tools.js :line 20 ) exists a bug. when the obj value is a "function", _.isObject(obj) return "true" not "false", which leads to the operation of clone not directly return the function. This bug lead the function RolesSet.prototype.get_roles( file:framework/users/roles_set.js :line 135) throw an not caught exception, which leads to all the user can not create a new topic in your demo of "blog".
I just fix it.