Require permission to generate a new project

This commit is contained in:
Lance Edgar 2020-09-08 19:01:34 -05:00
parent f8d9b0803c
commit 7df5838bc0

View file

@ -156,6 +156,7 @@ class GenerateProjectView(View):
"Generate new project source code") "Generate new project source code")
config.add_route('generate_project', '/generate-project') config.add_route('generate_project', '/generate-project')
config.add_view(cls, route_name='generate_project', config.add_view(cls, route_name='generate_project',
permission='common.generate_project',
renderer='/generate_project.mako') renderer='/generate_project.mako')