Hi,

My problem is that I want to be able to switch between subusers of a parent but when I switch to a subuser (logging in as that subuser) I'm no longer parent (and therefore cannot switch to other subusers).

I write custom php in a block to make my own switch-widget so I am able to get subusers even when I'm logged in as a subuser. I fetch the parent of that subuser and then fetch all the subusers of the parent. But when I click the link (/subuser/switch/user_id) when switchet, or logged in, as a user I get access denied. And that must be because I am not the parent at that moment.

So if I don't find a way to do it the parent has to return from a subuser in order to switch to another subuser.

Can it be done by redirecting in any way? When subuser is switching to other subuser he is in fact switching back to parent and then redirects (switch) to the other subuser.

It's not a problem if the subuser logging in may switch to his parents other subusers.

Thanks in advance!

// Victor

Comments

memoo’s picture

subcribe