mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
70373: Stop impersonating button in navbar + clear cookie on logout
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user