<s> from nodeconductor . core . permissions import FilteredCollaboratorsPermissionLogic , StaffPermissionLogic <EOL> from nodeconductor . structure import models as structure_models , perms as structure_perms <EOL> PERMISSION_LOGICS = ( <EOL> ( '<STR_LIT>' , structure_perms . service_permission_logic ) , <EOL> ( '<STR_LIT>' , structure_perms . service_project_link_permission_logic ) , <EOL> ( '<STR_LIT>' , FilteredCollaboratorsPermissionLogic ( <EOL> collaborators_query = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] , <EOL> collaborators_filter = [ <EOL> { '<STR_LIT>' : structure_models . CustomerRole . OWNER } , <EOL> { '<STR_LIT>' : structure_models . ProjectRole . ADMINISTRATOR } , <EOL> { '<STR_LIT>' : <EOL> structure_models . ProjectGroupRole . MANAGER } <EOL> ] , <EOL> any_permission = True , <EOL> ) ) , <EOL> ( '<STR_LIT>' , FilteredCollaboratorsPermissionLogic ( <EOL> collaborators_query = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] , <EOL> collaborators_filter = [ <EOL> { '<STR_LIT>' : <EOL> structure_models . CustomerRole . OWNER } , <EOL> { '<STR_LIT>' : <EOL> structure_models . ProjectRole . ADMINISTRATOR } , <EOL> { '<STR_LIT>' : <EOL> structure_models . ProjectGroupRole . MANAGER } , <EOL> ] , <EOL> any_permission = True , <EOL> ) ) , <EOL> ( '<STR_LIT>' , FilteredCollaboratorsPermissionLogic ( <EOL> collaborators_query = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] , <EOL> collaborators_filter = [ <EOL> { '<STR_LIT>' : <EOL> structure_models . CustomerRole . OWNER } , <EOL> { '<STR_LIT>' : <EOL> structure_models . ProjectRole . ADMINISTRATOR } , <EOL> { '<STR_LIT>' : <EOL> structure_models . ProjectGroupRole . MANAGER } , <EOL> ] , <EOL> any_permission = True , <EOL> ) ) , <EOL> ( '<STR_LIT>' , FilteredCollaboratorsPermissionLogic ( <EOL> collaborators_query = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] , <EOL> collaborators_filter = [ <EOL> { '<STR_LIT>' : <EOL> structure_models . CustomerRole . OWNER } , <EOL> { '<STR_LIT>' : <EOL> structure_models . ProjectRole . ADMINISTRATOR } , <EOL> { '<STR_LIT>' : <EOL> structure_models . ProjectGroupRole . MANAGER } , <EOL> ] , <EOL> any_permission = True , <EOL> ) ) , <EOL> ( '<STR_LIT>' , structure_perms . resource_permission_logic ) , <EOL> ( '<STR_LIT>' , structure_perms . resource_permission_logic ) , <EOL> ( '<STR_LIT>' , StaffPermissionLogic ( any_permission = True ) ) , <EOL> ( '<STR_LIT>' , StaffPermissionLogic ( any_permission = True ) ) , <EOL> ( '<STR_LIT>' , StaffPermissionLogic ( any_permission = True ) ) , <EOL> ) </s>
