mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 01:11:23 +03:00
feat: Use environment variables for default admin configuration
This commit is contained in:
@@ -67,6 +67,13 @@ module.exports = {
|
||||
throw Errors.USER_NOT_FOUND;
|
||||
}
|
||||
|
||||
if (user.email === sails.config.custom.defaultAdminEmail) {
|
||||
/* eslint-disable no-param-reassign */
|
||||
delete inputs.isAdmin;
|
||||
delete inputs.name;
|
||||
/* eslint-enable no-param-reassign */
|
||||
}
|
||||
|
||||
const values = {
|
||||
..._.pick(inputs, [
|
||||
'isAdmin',
|
||||
|
||||
Reference in New Issue
Block a user