mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-01 04:09:08 +01:00
fix race condition on authorization event processing which leads to permission mismatch
This commit is contained in:
@@ -140,7 +140,7 @@ public class AuthorizationChangedEventProducer {
|
||||
*
|
||||
* @param event repository event
|
||||
*/
|
||||
@Subscribe
|
||||
@Subscribe(async = false)
|
||||
public void onEvent(RepositoryEvent event) {
|
||||
if (event.getEventType().isPost()) {
|
||||
if (isModificationEvent(event)) {
|
||||
|
||||
@@ -295,7 +295,7 @@ public class DefaultAuthorizationCollector implements AuthorizationCollector
|
||||
//J+
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
@Subscribe(async = false)
|
||||
public void invalidateCache(AuthorizationChangedEvent event) {
|
||||
if (event.isEveryUserAffected()) {
|
||||
invalidateUserCache(event.getNameOfAffectedUser());
|
||||
|
||||
Reference in New Issue
Block a user