Prevent home project without URL.
This commit is contained in:
@@ -98,11 +98,13 @@ def protect_sensitive_fields(document, original):
|
||||
return
|
||||
document[name] = original[name]
|
||||
|
||||
revert('url')
|
||||
revert('status')
|
||||
revert('category')
|
||||
revert('user')
|
||||
|
||||
if 'url' in original:
|
||||
revert('url')
|
||||
|
||||
|
||||
def after_inserting_projects(projects):
|
||||
"""After inserting a project in the collection we do some processing such as:
|
||||
|
Reference in New Issue
Block a user