Move app isRestricted to XHook