Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • Light
  • 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 6 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 This user is from outside of this forum
    A This user is from outside of this forum
    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
    • System shared this topic on
    • A This user is from outside of this forum
      A This user is from outside of this forum
      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 This user is from outside of this forum
        julian@community.nodebb.orgJ This user is from outside of this forum
        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
        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