def owner_or_contrib(request,collection):
    return request.user.has_perm('statmaps.change_collection', collection) or request.user.is_superuser
owner_or_contrib determines if user is an owner or contributor to a collection
dataset/ETHPy150Open NeuroVault/NeuroVault/neurovault/apps/statmaps/views.py/owner_or_contrib