Hot fix for the fix.
This commit is contained in:
parent
666a5842a5
commit
3a4754d28b
@ -40,13 +40,11 @@ def override_is_private_field(project, original):
|
||||
:param project: the project, which will be updated
|
||||
"""
|
||||
|
||||
# No permissions, no access.
|
||||
if 'permissions' not in project:
|
||||
project['is_private'] = False
|
||||
project['is_private'] = True
|
||||
return
|
||||
|
||||
world_perms = project['permissions'].get('world', [])
|
||||
project['is_private'] = 'GET' not in world_perms
|
||||
|
||||
|
||||
def before_inserting_override_is_private_field(projects):
|
||||
for project in projects:
|
||||
|
Loading…
x
Reference in New Issue
Block a user