1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-02 03:55:24 +02:00

account deactivation process

This commit is contained in:
Harvey Kandola 2018-11-09 13:42:58 +00:00
parent 6a9ad7f540
commit 0a64afd6b5
5 changed files with 66 additions and 2 deletions

View file

@ -234,5 +234,15 @@ export default Service.extend({
xhr.send(data);
});
}
},
deactivate() {
if(this.get('sessionService.isAdmin')) {
return this.get('ajax').request(`deactivate`, {
method: 'POST',
}).then(() => {
return;
});
}
},
});