Skip to content

Commit

Permalink
Fix #86
Browse files Browse the repository at this point in the history
  • Loading branch information
mswindler committed Aug 31, 2019
1 parent 9e2d580 commit 7affb4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pipe/tools/houtools/publisher/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from pipe.am.environment import Department
from pipe.am.environment import Environment
from pipe.am import pipeline_io
from pipe.am.body import Body, AssetType
from pipe.am.project import Project
from pipe.am.element import Element
Expand Down Expand Up @@ -292,7 +293,9 @@ def shot_results(self, value):
#Publish
user = Environment().get_user()
comment = "publish by " + str(user.get_username()) + " in department " + str(department)
pipeline_io.set_permissions(src)
dst = self.publish_element(element, user, src, comment)
pipeline_io.set_permissions(dst)

message = "Successfully published " + str(self.body.get_name()) + "!"
self.print_success_message(message)
Expand Down

0 comments on commit 7affb4c

Please sign in to comment.