Add admin panel with storage overview and user management#1
Conversation
Co-authored-by: fybedev <85213715+fybedev@users.noreply.github.com>
|
@copilot |
fybedev
left a comment
There was a problem hiding this comment.
Admin permission checking doesn't work properly
…ad of duplicating Co-authored-by: fybedev <85213715+fybedev@users.noreply.github.com>
Two bugs were causing this (fixed in
After the fix, |

is_adminfield support to user records indb_auth.pyapp.pytemplates/admin.htmlwith storage stats and user management tableregister_userbug: initialize'users'/'files'keys when missing (fresh DB) soupdate_database.pyworks on first runregister_userbug: update existing user record (quota, is_admin, password) instead of appending a duplicate entry — preventsis_admin_userreturning False for the pre-existing entrycheck_if_user_exists,is_admin_user,check_if_authagainst missing'users'keyOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.