cheng-kang / wildfire

🔥From a little spark may burst a flame.
https://wildfire.js.org
GNU General Public License v3.0
178 stars 18 forks source link

Error: PERMISSION_DENIED: This client does not have permission to perform this operation #20

Closed cheng-kang closed 6 years ago

cheng-kang commented 6 years ago

问题描述 Issue Description

怎么了 What

Error: PERMISSION_DENIED: This client does not have permission to perform this operation
    at P (wilddog-web-all.js?e40d:204)
    at Object.eval [as P] (wilddog-web-all.js?e40d:210)
    at eval (wilddog-web-all.js?e40d:141)
    at mf.h.wg (wilddog-web-all.js?e40d:145)
    at Socket.eval (wilddog-web-all.js?e40d:134)
    at Socket.Emitter.emit (index.js?ea2f:134)
    at Socket.onPacket (socket.js?1006:442)
    at WS.eval (socket.js?1006:258)
    at WS.Emitter.emit (index.js?ea2f:134)
    at WS.Transport.onPacket (transport.js?87a5:143)

如何重现 Reproduce

如果在设置管理员时将 isAdmin 设置成了字符串 "true" 而非逻辑真值 true,就会出现这个错误。

This error occurs when you set isAdmin to string "true" instead of boolean true.

其他的话 Other Comment

isAdmin 设置为逻辑真值 true

Set isAdmin to boolean true.