Commit 9390b5c1 by zCaesar

can unsub

parent b2b78367
...@@ -7,7 +7,8 @@ module.exports = function(options = {}) { ...@@ -7,7 +7,8 @@ module.exports = function(options = {}) {
var client_id = req.body.client_id var client_id = req.body.client_id
var response var response
var decoded = require('./checkClientRole').checkRealDB(token) var decoded = require('jwt-verify').verify(token).res
// var decoded = require('./checkClientRole').checkRealDB(token)
if (decoded) { if (decoded) {
if (decoded.role === 'realtimedb') { if (decoded.role === 'realtimedb') {
response = { 'result': 'ok' } response = { 'result': 'ok' }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment