def enforce_action(context, action):
 return enforce(context, action, {'project_id': context.project_id, 'user_id': context.user_id})

def enforce_action ( context , action ) : return enforce ( context , action , { 'project_id' : context . project_id , 'user_id' : context . user_id } )
checks that the action can be done by the given context .