Skip to content

Commit

Permalink
chore(gsuite): fixed rebase
Browse files Browse the repository at this point in the history
Not all merge conflicts were resolved correctly
  • Loading branch information
WikiRik committed Jul 15, 2021
1 parent e23e889 commit 4c06310
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ module.exports = {
MAIL_SUBJECTS: {
MAIL_CONFIRMATION: 'MyAEGEE: Please confirm your account',
MAIL_CHANGE: 'MyAEGEE: Email change',
PASSWORD_RESET: 'MyAEGEE: Password reset request',
NEW_JOIN_REQUEST: 'MyAEGEE: New join request for your body',
NEW_MEMBER: 'MyAEGEE: Welcome to AEGEE'
},
RESTRICTED_EMAILS: ['aegee.org', 'aegee.eu'],
Expand Down
1 change: 1 addition & 0 deletions middlewares/members.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ exports.deleteUser = async (req, res) => {
if (!req.permissions.hasPermission('delete:member')) {
return errors.makeForbiddenError(res, 'Permission delete:member is required, but not present.');
}

// TODO: if user gets deleted the gsuite account also gets deleted (if there was an account attached)
await superagent.delete('gsuite-wrapper:8084/accounts/' + req.currentUser.gsuite_id);
await req.currentUser.destroy();
Expand Down

0 comments on commit 4c06310

Please sign in to comment.