From 1c1dbf5702b509bc86758ac821417b2eca9b4929 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 4 Jun 2014 14:34:14 +0200 Subject: [PATCH] Fix applying template Refs #1704 --- src/biz/bokhorst/xprivacy/PrivacyManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/biz/bokhorst/xprivacy/PrivacyManager.java b/src/biz/bokhorst/xprivacy/PrivacyManager.java index 55fa302e3..8bba10fdb 100644 --- a/src/biz/bokhorst/xprivacy/PrivacyManager.java +++ b/src/biz/bokhorst/xprivacy/PrivacyManager.java @@ -477,8 +477,8 @@ public static void applyTemplate(int uid, String restrictionName, boolean method && restricted, parentAsked || asked); else childMerge = getRestrictionEx(uid, rRestrictionName, hook.getName()); - if ((parentRestricted && !restricted) || (!parentAsked && asked) || hook.whitelist() != null - || !clear) { + if ((parentRestricted && !restricted) || (!parentAsked && asked) || hook.isDangerous() + || hook.whitelist() != null || !clear) { PRestriction child = new PRestriction(uid, rRestrictionName, hook.getName(), (parentRestricted && restricted) || childMerge.restricted, (parentAsked || asked) && childMerge.asked);