Skip to content

Commit 32f052b

Browse files
committed
fix suggestions
1 parent b40bb8b commit 32f052b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

qiita_db/analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ def share(self, user):
684684
The user to share the analysis with
685685
"""
686686
# Make sure the analysis is not already shared with the given user
687-
if user.id == self.owner:
687+
if user.id == self.owner or user.id in self.shared_with:
688688
return
689689

690690
with qdb.sql_connection.TRN:

qiita_pet/handlers/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def to_int(value):
9393

9494
@execute_as_transaction
9595
def get_shared_links(obj):
96-
"""Createse HTML links for users obj is shared with
96+
"""Creates email links for the users obj is shared with
9797
9898
Parameters
9999
----------

0 commit comments

Comments
 (0)