Merge pull request #2996 from pedroigor/KEYCLOAK-3248
[KEYCLOAK-3248] - Permissions don't unlink from resources and scopes
This commit is contained in:
commit
1ec88cf5b0
2 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ public class CachedPolicyStore implements PolicyStore {
|
||||||
@Override
|
@Override
|
||||||
public void delete(String id) {
|
public void delete(String id) {
|
||||||
getDelegate().delete(id);
|
getDelegate().delete(id);
|
||||||
this.transaction.whenComplete(() -> cache.remove(id));
|
this.transaction.whenComplete(() -> cache.remove(getCacheKeyForPolicy(id)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -64,7 +64,7 @@ public class CachedResourceStore implements ResourceStore {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void delete(String id) {
|
public void delete(String id) {
|
||||||
this.cache.evict(getCacheKeyForResource(id));
|
this.cache.remove(getCacheKeyForResource(id));
|
||||||
getDelegate().delete(id);
|
getDelegate().delete(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue