Skip to content
Snippets Groups Projects
Commit 16dd0538 authored by Jonathan Seguin's avatar Jonathan Seguin
Browse files

Merge branch...

Merge branch '48-add-functionnality-to-create-a-user-without-a-login-event-admin' of gitlab.iric.ca:bioinfo_iric/iric-data into 48-add-functionnality-to-create-a-user-without-a-login-event-admin
parents 4f6149ee 016ee92d
No related branches found
No related tags found
1 merge request!19Resolve "Add functionnality to create a user without a login event (Admin)"
......@@ -147,7 +147,7 @@ class DataFileDownloadView(LoginRequiredMixin, PrivateStorageDetailView):
def can_access_file(self, private_file):
# When the object can be accessed, the file may be downloaded.
# This overrides PRIVATE_STORAGE_AUTH_FUNCTION
return self.object.profile == self.request.user.profile
return self.object.uploaded_by == self.request.user.profile
class DataFileDeleteView(LoginRequiredMixin, DeleteViewMixin, DeleteView):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment