Limit default node_types to group, asset and comment
This commit is contained in:
parent
a919792f5a
commit
aebbe019b5
@ -139,7 +139,6 @@ def after_inserting_project(project, db_user):
|
|||||||
project['node_types'] = [
|
project['node_types'] = [
|
||||||
with_permissions(node_type_group),
|
with_permissions(node_type_group),
|
||||||
with_permissions(node_type_asset),
|
with_permissions(node_type_asset),
|
||||||
with_permissions(node_type_page),
|
|
||||||
with_permissions(node_type_comment)]
|
with_permissions(node_type_comment)]
|
||||||
|
|
||||||
# Allow admin users to use whatever url they want.
|
# Allow admin users to use whatever url they want.
|
||||||
@ -174,9 +173,7 @@ def _create_new_project(project_name, user_id, overrides):
|
|||||||
# Create the project itself, the rest will be done by the after-insert hook.
|
# Create the project itself, the rest will be done by the after-insert hook.
|
||||||
project = {'description': '',
|
project = {'description': '',
|
||||||
'name': project_name,
|
'name': project_name,
|
||||||
'node_types': [node_type_blog,
|
'node_types': [],
|
||||||
node_type_post,
|
|
||||||
node_type_comment],
|
|
||||||
'status': 'published',
|
'status': 'published',
|
||||||
'user': user_id,
|
'user': user_id,
|
||||||
'is_private': True,
|
'is_private': True,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user