def _visible_to_nonstaff_users(descriptor):
 return (VisibilityError() if descriptor.visible_to_staff_only else ACCESS_GRANTED)

def _visible_to_nonstaff_users ( descriptor ) : return ( VisibilityError ( ) if descriptor . visible_to_staff_only else ACCESS_GRANTED )
returns if the object is visible to nonstaff users .