Skip to content

Commit

Permalink
CORE-1900 Update Tapis app sharing calls
Browse files Browse the repository at this point in the history
  • Loading branch information
psarando committed Jun 29, 2024
1 parent 92de694 commit 9327024
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/apps/service/apps/tapis/sharing.clj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
(if-not (ipg/user-source? (:source_id sharee))
(failure-fn "Sharing HPC apps with a group is not supported")
(try+
(.shareAppWithUser tapis (:id sharee) app-id level)
(if level
(.shareAppWithUser tapis (:id sharee) app-id level)
(.unshareAppWithUser tapis (:id sharee) app-id))
(success-fn)
(catch [:error_code ce/ERR_UNAVAILABLE] {:keys [reason]}
(log/error (:throwable &throw-context) "Tapis app listing timed out")
Expand Down

0 comments on commit 9327024

Please sign in to comment.