mirror of
https://hk.gh-proxy.com/https://github.com/NodeBB/nodebb-plugin-poll.git
synced 2025-10-04 04:41:13 +08:00
refactor: remove log
This commit is contained in:
parent
59dc25469e
commit
a2a639f0b3
1 changed files with 0 additions and 1 deletions
|
@ -160,7 +160,6 @@ Sockets.canCreate = async function (socket, data) {
|
|||
|
||||
async function checkPrivs(cid, socketUid) {
|
||||
const can = await NodeBB.Privileges.categories.can('poll:create', cid, socketUid);
|
||||
console.log(cid, socketUid, can);
|
||||
if (!can) {
|
||||
throw new Error('[[poll:error.privilege.create]]');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue