Grant one user full control over another user’s account in a custom plugin
-
I’m writing a NodeBB plugin and need to let User A inherit all of User B’s permissions, including:
-
Creating topics and replies on their behalf
-
Changing their password
-
Chatting as them
-
Editing or deleting their existing posts
In other words, I want two linked accounts so that logging in as User A gives full control over User B’s account. What’s the best way to implement this in my plugin?
I tried going through all the permission hooks but didn’t find anything suitable.
Appreciate any help—thanks!
-
-
T Technical Support shared this topic on
-
julian
I’m stuck halfway through creating a NodeBB plugin and could really use your expertise. I’m on a tight deadline and it’s quite urgent—would you be able to lend me a hand?Thank you very much for any assistance you can provide.
-
julian
I’m stuck halfway through creating a NodeBB plugin and could really use your expertise. I’m on a tight deadline and it’s quite urgent—would you be able to lend me a hand?Thank you very much for any assistance you can provide.
AMAARETS I think all you really need to do is have your plugin change req.session.uid and req.uid to the target uid.
Although in practice there might be some cases I did not consider.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Tilmeld Log ind