Developer forum

Forum » Development » Keep permissions after impersonate

Keep permissions after impersonate

Anders Ebdrup
Anders Ebdrup
Reply

Hi,

 

Do anyone have an idea of how to keep the primary user's rights after start impersonating? We are using full impersonation to be able to use cart, favorites, orders and so on.

I need to have access to the same pages and paragraphs as the primary user so I guess that I have to use an observer to overwrite permissions for the impersonated user, but which and what to overwrite?

Any help will be much appreciated.

Thanks, Anders

Replies

 
Anders Ebdrup
Anders Ebdrup
Reply

Hello guys,

 

I am really hoping for some input on this one enlightened

 

Best regards, Anders

 
Nicolai Pedersen
Nicolai Pedersen
Reply

Hi Anders

I cannot think of a way to do this in an easy (any) way... There are so many getcurrentusers in the permission checks. I think it is easier to go to the other impersonation mode and code around the need for shared favorites etc.

BR Nicolai

 

You must be logged in to post in the forum