Promote to superadmin
perdedora opened this issue · 2 comments
Is there any possibility without changing in the database to promote a admin to a superadmin?
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
Thanks for the quick response.