Giter Site home page Giter Site logo

Promote to superadmin about lolisafe HOT 2 CLOSED

perdedora avatar perdedora commented on July 26, 2024
Promote to superadmin

from lolisafe.

Comments (2)

BobbyWibowo avatar BobbyWibowo commented on July 26, 2024

You could edit https://github.com/BobbyWibowo/lolisafe/blob/safe.fiery.me/controllers/permissionController.js and add a new usergroup with higher permission number value than superadmin's, and assign yourself to it (though you will need to manually query the database to do so)
But going forward said user will be able to promote anyone to superadmins via the dashboard

Be advised that "root" user is hard-coded to always have superadmin permission for compatibility reasons with non-fork installs (no longer the case since commit 729883a, as it's instead governed by some config values that only affect fresh installs, and can safely be turned off after the initial setup)
But you can safely delete the user via manual database query, since the API endpoints will prevent any attempt to re-create "root" user

from lolisafe.

perdedora avatar perdedora commented on July 26, 2024

Thanks for the quick response.

from lolisafe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.