mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 14:53:00 +03:00
🐛 Bug Report: Cannot disable users #159
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @luketainton on GitHub.
Reproduction steps
Expected behavior
The user should be disabled.
Actual Behavior
The user remains enabled.
Version and Environment
Version 1.4.1, running in Docker on a Debian host. Running Postgres
17.5-alpine3.21.Log Output
The issue seems to be in this line - the DB is being updated with
disabled=Falsewhen it should bedisabled=True.[0.641ms] [rows:1] UPDATE "users" SET "created_at"='2025-04-28 14:16:15.55',"username"='(removed)',"email"='(removed)',"first_name"='(removed)',"last_name"='(removed)',"is_admin"=false,"locale"=NULL,"ldap_id"=NULL,"disabled"=false WHERE "id" = '844d9675-2a5d-401a-bfd2-5c24b7740461'@kmendell commented on GitHub:
I can reproduce this when checking the Disabled switch when cretaing a new user, but besides that if i disable a user from the user table or from the profile view it works for me.
@stonith404 commented on GitHub:
I'm also only able to reproduce the issue @kmendell has described with
postgres:17.5-alpine3.21.Would you mind sharing a database dump of your database? Just make sure to clear all sensitive info.
@stonith404 commented on GitHub:
Oh or wait. Did you disable "Enable Self-Account Editing"?
@stonith404 commented on GitHub:
I'm unable to reproduce this. A few questions:
@luketainton commented on GitHub:
Hi @stonith404
Every user I try to disable, yes.
Yes, I even checked the Account Disabled toggle before hitting save and it still didn't disable the account.
Nope, purely local users.
No.
@luketainton commented on GitHub:
@stonith404 Yes I have.
@luketainton commented on GitHub:
Confirmed working in 1.5.0, thanks!
@stonith404 commented on GitHub:
Thanks, this should be fixed in
29cb5513a0and will be available in the next release.