Skip to content

Commit

Permalink
Debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
ShootingStar91 committed Jun 28, 2024
1 parent 8380786 commit 4dd3427
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/util/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const common = require('@root/util/common')

const isSuperAdmin = (userId) => {
if (userId === 'admin' && !common.inProduction) return true
console.log(`userId: ${userId} superAdmins: ${process.env.SUPERADMINS}`)
if (process.env.SUPERADMINS && process.env.SUPERADMINS.split(',').find(u => u === userId)) return true
return false
}
Expand Down

0 comments on commit 4dd3427

Please sign in to comment.