Don't prompt from ui
getRestrictionList is only called from the ui, so no secret
Merge pull request #1241 from jpeg729/bugfix

Bugfix