Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Kollaps
FARVEL BIG TECH
  1. Forside
  2. Technical Support
  3. Grant one user full control over another user’s account in a custom plugin

Grant one user full control over another user’s account in a custom plugin

Planlagt Fastgjort Låst Flyttet Technical Support
3 Indlæg 2 Posters 104 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • A
    A
    amaarets@community.nodebb.org
    wrote on sidst redigeret af
    #1

    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!

    1 Reply Last reply
    1
    0
    • Technical SupportT Technical Support shared this topic on
    • A
      A
      amaarets@community.nodebb.org
      wrote on sidst redigeret af
      #2

      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@community.nodebb.orgJ 1 Reply Last reply
      0
      • A amaarets@community.nodebb.org

        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@community.nodebb.orgJ
        julian@community.nodebb.orgJ
        julian@community.nodebb.org
        wrote on sidst redigeret af
        #3

        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.

        1 Reply Last reply
        1

        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
        Svar
        • Svar som emne
        Login for at svare
        • Ældste til nyeste
        • Nyeste til ældste
        • Most Votes


        • Log ind

        • Har du ikke en konto? Tilmeld

        • Login or register to search.
        Powered by NodeBB Contributors
        Graciously hosted by data.coop
        • First post
          Last post
        0
        • Hjem
        • Seneste
        • Etiketter
        • Populære
        • Verden
        • Bruger
        • Grupper