def _is_user_author_or_privileged(cc_content, context):
 return (context['is_requester_privileged'] or (context['cc_requester']['id'] == cc_content['user_id']))

def _is_user_author_or_privileged ( cc_content , context ) : return ( context [ 'is_requester_privileged' ] or ( context [ 'cc_requester' ] [ 'id' ] == cc_content [ 'user_id' ] ) )
check if the user is the author of a content object or a privileged user .