Move authorization check to manager

This commit is contained in:
René Pfeuffer
2020-09-18 10:58:04 +02:00
parent 6d6a41372d
commit 69997a67cd
3 changed files with 10 additions and 17 deletions

View File

@@ -153,10 +153,8 @@ public class AuthorizationChangedEventProducer {
@Subscribe
public void onEvent(NamespaceEvent event) {
if (event.getEventType().isPost()) {
if (isModificationEvent(event)) {
handleNamespaceModificationEvent((NamespaceModificationEvent) event);
}
if (event.getEventType().isPost() && isModificationEvent(event)) {
handleNamespaceModificationEvent((NamespaceModificationEvent) event);
}
}