We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b40bb8b commit 32f052bCopy full SHA for 32f052b
qiita_db/analysis.py
@@ -684,7 +684,7 @@ def share(self, user):
684
The user to share the analysis with
685
"""
686
# Make sure the analysis is not already shared with the given user
687
- if user.id == self.owner:
+ if user.id == self.owner or user.id in self.shared_with:
688
return
689
690
with qdb.sql_connection.TRN:
qiita_pet/handlers/util.py
@@ -93,7 +93,7 @@ def to_int(value):
93
94
@execute_as_transaction
95
def get_shared_links(obj):
96
- """Createse HTML links for users obj is shared with
+ """Creates email links for the users obj is shared with
97
98
Parameters
99
----------
0 commit comments