Update by natay on Thu Apr  5 08:46:31 EDT 2018 from natay
@@ -365,7 +365,9 @@ class BiostarFileSystem(AbstractedFS):
if name:
instance = query_tab(tab=tab, project=root_project, name=name)
- access = Access.objects.filter(user=user, project=instance.project) or Access(access=Access.NO_ACCESS)
+ access = None
+ if instance:
+ access = Access.objects.filter(user=user, project=instance.first().project) or Access(access=Access.NO_ACCESS)
if access in (Access.WRITE_ACCESS, Access.OWNER_ACCESS):
