From 9e2dfbda3571c9ec867f3eba7b4996f1bb1de1e7 Mon Sep 17 00:00:00 2001 From: Michael Simon <simon@kit.edu> Date: Tue, 5 Nov 2024 07:12:55 +0100 Subject: [PATCH] NO_STORY add configurtaion to disable AttributeSource --- .../java/edu/kit/scc/webreg/as/AttributeSourceUpdater.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/regapp-as/src/main/java/edu/kit/scc/webreg/as/AttributeSourceUpdater.java b/regapp-as/src/main/java/edu/kit/scc/webreg/as/AttributeSourceUpdater.java index e0fd912fc..20e4e017d 100644 --- a/regapp-as/src/main/java/edu/kit/scc/webreg/as/AttributeSourceUpdater.java +++ b/regapp-as/src/main/java/edu/kit/scc/webreg/as/AttributeSourceUpdater.java @@ -73,6 +73,11 @@ public class AttributeSourceUpdater implements Serializable { ASUserAttrEntity asUserAttr = findASUserAttr(user, attributeSource); + if (attributeSource.getAsProps() != null && attributeSource.getAsProps().containsKey("disabled") + && attributeSource.getAsProps().get("disabled").equalsIgnoreCase("true")) { + return changed; + } + // Default expiry Time after for Attribute Update Long expireTime = 30000L; -- GitLab