Skip to content

Commit

Permalink
switch to user context instead of super user context
Browse files Browse the repository at this point in the history
  • Loading branch information
msaipraneeth committed Aug 30, 2023
1 parent 3bccaa7 commit 9ec68fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmem_plugin_databus/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from cmem_plugin_base.dataintegration.parameter.dataset import DatasetParameterType
from cmem_plugin_base.dataintegration.plugins import WorkflowPlugin
from cmem_plugin_base.dataintegration.types import StringParameterType, Autocompletion
from cmem_plugin_base.dataintegration.utils import setup_cmempy_super_user_access
from cmem_plugin_base.dataintegration.utils import setup_cmempy_user_access

from cmem_plugin_databus.cmem_wrappers import post_streamed_bytes
from cmem_plugin_databus.utils import (
Expand Down Expand Up @@ -228,7 +228,7 @@ def __get_graph_uri(self, context: ExecutionContext):
def execute(
self, inputs=(), context: ExecutionContext = ExecutionContext()
) -> None:
setup_cmempy_super_user_access()
setup_cmempy_user_access(context.user)
self.log.info(f"Loading file from {self.databus_file_id}")

data: bytearray = bytearray()
Expand Down

0 comments on commit 9ec68fe

Please sign in to comment.