Commit 8b465f5e authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: user has no group if it can not even access the Project

parent 180a1777
portal = context.getPortalObject()
checked_permission = 'Access contents information'
if project_relation == 'context':
project = context
elif project_relation == 'follow_up':
project = context.getFollowUpValue()
project = context.getFollowUpValue(checked_permission=checked_permission)
elif project_relation == 'destination_project':
project = context.getDestinationProjectValue()
project = context.getDestinationProjectValue(checked_permission=checked_permission)
elif project_relation == 'source_project':
project = context.getSourceProjectValue()
project = context.getSourceProjectValue(checked_permission=checked_permission)
else:
raise ValueError('Unexpected project relation: %s' % project_relation)
if project is None:
return None
return False
project_codification = project.getCodification()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment