Set dangerous functions to on demand restricting when the category restricting changes to restricted