70373: Stop impersonating button in navbar + clear cookie on logout

This commit is contained in:
Kristof De Langhe
2020-04-15 13:08:04 +02:00
parent e43aa15a70
commit c48bb2cbb0
9 changed files with 64 additions and 2 deletions

View File

@@ -513,6 +513,13 @@ export class AuthService {
*/
stopImpersonating() {
this.storage.remove(IMPERSONATING_COOKIE);
}
/**
* Stop impersonating EPerson and refresh the store/ui
*/
stopImpersonatingAndRefresh() {
this.stopImpersonating();
this.refreshAfterLogout();
}