danpros / htmly

Simple and fast databaseless PHP blogging platform, and Flat-File CMS
https://www.htmly.com
GNU General Public License v2.0
1.01k stars 258 forks source link

[FEATURE REQUEST] Admin to User Problem #768

Closed followthwhiterabbit closed 1 month ago

followthwhiterabbit commented 1 month ago

I was previously admin of my blog and accidentally made myself user and lost a lot of privileges to edit my site. Now, I cannot roll it back.

It would be really nice if it would not be possible to make yourself user when there is only one user in the website.

danpros commented 1 month ago

Hello,

Simply use your hosting file manager, go to config/users/ folder, edit username.ini, change the role to admin.

Yes we need an extra check for it.