Fix merge bug

esisar-restrictions
Simon Vareille 2020-06-13 11:11:25 +02:00
parent 22bf076bff
commit 80721b237e
No known key found for this signature in database
GPG Key ID: 008AE8E706CC19F9
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ class PGP {
}
// check for at least one valid user id
const userIds = await this.parseUserIds(key.users, primaryKey, verifyDate);
const {userIds, status} = await this.parseUserIds(key.users, primaryKey, verifyDate);
if (!userIds.length) {
if (status == 1) {
util.throw(400, 'Invalid PGP key: no user ID comes from a valid organisation');