Bug 1230937 - Restricted profiles: Always allow features that are not in the configuration. r=margaret

This commit is contained in:
Sebastian Kaspari 2015-12-15 13:21:45 +01:00
parent d590ae184e
commit 4628ca63b5

View File

@ -72,6 +72,11 @@ public class RestrictedProfileConfiguration implements RestrictionConfiguration
return !cachedUserRestrictions.getBoolean(restrictable.name);
}
if (!cachedAppRestrictions.containsKey(restrictable.name) && !configuration.containsKey(restrictable)) {
// Always allow features that are not in the configuration
return true;
}
return cachedAppRestrictions.getBoolean(restrictable.name, configuration.get(restrictable));
}