Skip to Content
author's profile photo Former Member
Former Member

Impex restriction during upload in backoffice

Hi,

I wanted to put header restriction when user of lets say X group upload the impex. For ex : If user of EMP group can only upload impex for Lets say store. Is it possible to put evaluate or validate that he is uploading correct impex based on header. If he is uploading impex for Product, he should not be allowed.

Can we customize such kind of stuff in backoffice for impex upload.

Regards,

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 20, 2017 at 12:22 PM

    Hi ,

    I would suggest that before insert the impex, check if the user has the right restriction.

    like following code:

    #% if: CatalogManager.getInstance().getCatalog("myCatalog") != null ;

    INSERT Catalog; id[unique=true];

    ...

    #% endif:

    For more details please refer: https://wiki.hybris.com/display/release5/ImpEx+API#ImpExAPI-ImpexScriptinginhybrisCommerceSuitepriorto5.2.0-BeanShell : Control Structures

    Best,

    Nan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.