The verbs such as ‘allow’, ’advise’, ‘recommend’, ‘require’ and so on can be followed by a gerund or a noun with an infinitive without changing the meaning.
Example
Our teachers won't allow us to use calculators during the test.
Our teachers won't allow using calculators during the test.
Grammar Test - Android goo.gl/HQna9y