Applying template will not apply to disabled restrictions anymore

Fixes #1747