def is_task_mutable(context, task):
 if context.is_admin:
  return True
 if (context.owner is None):
  return False
 return (task.owner == context.owner)

def is_task_mutable ( context , task ) : if context . is_admin : return True if ( context . owner is None ) : return False return ( task . owner == context . owner )
return true if the task is mutable in this context .