Skip to content

Commit

Permalink
Prevent handling upload requests for other skills
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jul 7, 2023
1 parent 6b9c13f commit 4a9d200
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ovos_utils/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,12 @@ def upload_gui_pages(self, message: Message):
if not self.ui_directories:
LOG.debug("No UI resources to upload")
return

requested_skill = message.data.get("skill_id") or self._skill_id
if requested_skill != self._skill_id:
# GUI requesting a specific skill to upload other than this one
return

request_res_type = message.data.get("framework") or "all" if "all" in \
self.ui_directories else "qt5"
# Note that ui_directory "all" is a special case that will upload all
Expand Down

0 comments on commit 4a9d200

Please sign in to comment.