@@ -0,0 +1,407 @@
+%22%22%22%0AChecks if user is owner of at least one resource%0A%22%22%22%0A%0Afrom django import template%0Afrom metashare.repository.models import resourceInfoType_model%0Afrom django.template.defaultfilters import stringfilter%0A%0Aregister = template.Library()%0A%0A@register.filter%0A@stringfilter%0Adef is_owner(username):%0A    resources = resourceInfoType_model.objects.filter(owners__username=username)%0A    return resources.count() != 0%0A

check if user is owner of at least one resource