You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2021/06/24 06:29:15 UTC
[isis] branch ISIS-2764 updated: ISIS-2764: redirect when stop
impersonating, in order to redraw
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch ISIS-2764
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/ISIS-2764 by this push:
new d286355 ISIS-2764: redirect when stop impersonating, in order to redraw
d286355 is described below
commit d2863551d0540dc653315d41092bde83d6d8d671
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Thu Jun 24 07:28:51 2021 +0100
ISIS-2764: redirect when stop impersonating, in order to redraw
---
.../java/org/apache/isis/applib/services/user/ImpersonateStopMenu.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/api/applib/src/main/java/org/apache/isis/applib/services/user/ImpersonateStopMenu.java b/api/applib/src/main/java/org/apache/isis/applib/services/user/ImpersonateStopMenu.java
index f963b00..3547594 100644
--- a/api/applib/src/main/java/org/apache/isis/applib/services/user/ImpersonateStopMenu.java
+++ b/api/applib/src/main/java/org/apache/isis/applib/services/user/ImpersonateStopMenu.java
@@ -10,6 +10,7 @@ import org.apache.isis.applib.annotation.DomainServiceLayout;
import org.apache.isis.applib.annotation.NatureOfService;
import org.apache.isis.applib.annotation.PriorityPrecedence;
import org.apache.isis.applib.annotation.Publishing;
+import org.apache.isis.applib.annotation.Redirect;
import org.apache.isis.applib.annotation.RestrictTo;
import org.apache.isis.applib.annotation.SemanticsOf;
import org.apache.isis.applib.services.message.MessageService;
@@ -61,7 +62,7 @@ public class ImpersonateStopMenu {
executionPublishing = Publishing.DISABLED,
restrictTo = RestrictTo.PROTOTYPING
)
- @ActionLayout(sequence = "100.3")
+ @ActionLayout(sequence = "100.3", redirectPolicy = Redirect.EVEN_IF_SAME)
public void stopImpersonating() {
this.userService.stopImpersonating();
this.messageService.informUser("No longer impersonating another user");