Remove unreachable code
This commit is contained in:
parent
7ed717607a
commit
82f1e6753b
@ -14,9 +14,7 @@ module.exports = function layergroupToken () {
|
|||||||
|
|
||||||
if (layergroupToken.signer) {
|
if (layergroupToken.signer) {
|
||||||
res.locals.signer = layergroupToken.signer;
|
res.locals.signer = layergroupToken.signer;
|
||||||
if (!res.locals.signer) {
|
if (res.locals.signer !== user) {
|
||||||
res.locals.signer = user;
|
|
||||||
} else if (res.locals.signer !== user) {
|
|
||||||
var err = new Error(`Cannot use map signature of user "${res.locals.signer}" on db of user "${user}"`);
|
var err = new Error(`Cannot use map signature of user "${res.locals.signer}" on db of user "${user}"`);
|
||||||
err.type = 'auth';
|
err.type = 'auth';
|
||||||
err.http_status = 403;
|
err.http_status = 403;
|
||||||
|
Loading…
Reference in New Issue
Block a user