1. Technology Consultancy and Advisory
    Sudonix

    Sudonix

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    • Solved
    • More
      • About
      • Contact
      • Donate
      • FAQ
      • Founder's Journey
      • Policies
    1. Home
    2. Tags
    3. code
    Log in to post
    • All categories
    • pwsincd

      Detect if user is admin
      General • nodebb javascript code • • pwsincd

      2
      0
      Votes
      2
      Posts
      110
      Views

      phenomlab

      @pwsincd I think you can use userData.isAdmin = isAdmin; if I’m not mistaken - see

      Nov 16, 2020  /  NodeBB Plugins how to hide whitelist user field only to owner or admin? how to hide whitelist user field only to owner or admin?

      I was able to add user field on user creation by using hook filter:user.create. Now I noticed that the field is not generally available on the profile and to make it available we need to use the filter:user.whitelistFields . Please correct me if I am wron...

      for an example

    • phenomlab

      Want to include Fancybox in NodeBB without a plugin?
      Customisation • fancybox code • • phenomlab

      6
      1
      Votes
      6
      Posts
      332
      Views

      DownPW

      @phenomlab

      haha!!
      You are crazy. In a good way, of course 🙂

      It’s a way of saying you’re awesome !

    • phenomlab

      Easier to read code and pre blocks
      Announcements • code pre • • phenomlab

      1
      1
      Votes
      1
      Posts
      106
      Views

      No one has replied