[KEYCLOAK-3248] - Permissions don't unlink from resources and scopes
This commit is contained in:
1 parent
450b57c76a
commit
74139ec787
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -70,7 +70,7 @@ public class CachedPolicyStore implements PolicyStore {
|
||||
@Override
|
||||
public void delete(String id) {
|
||||
getDelegate().delete(id);
|
||||
this.transaction.whenComplete(() -> cache.remove(id));
|
||||
this.transaction.whenComplete(() -> cache.remove(getCacheKeyForPolicy(id)));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ public class CachedResourceStore implements ResourceStore {
|
||||
|
||||
@Override
|
||||
public void delete(String id) {
|
||||
this.cache.evict(getCacheKeyForResource(id));
|
||||
this.cache.remove(getCacheKeyForResource(id));
|
||||
getDelegate().delete(id);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user