mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
🐛 Bug Report: Clicking on edit app, kicks the user out of the session #75
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 @Metzlmane on GitHub.
Reproduction steps
Hi,
found a small UI inconvenience
i have set everything via the .env and set
ALLOW_OWN_ACCOUNT_EDIT=false
UI_CONFIG_DISABLED=true
if a normal user goes to his apps, the 3 dots appear where they can be edited. If i try that as normal user, I get immediately kicked out of the login session and have to re-login.
Expected behavior
A message should appear like
"not allowed" before kicking the user out of his session
or the 3 dots should not show up, if
ALLOW_OWN_ACCOUNT_EDIT=false
or if not admin
Actual Behavior
"something went wrong"
Version and Environment
Log Output
level=INFO msg="Error #01: You don't have permission to perform this action" app=pocket-id version=1.7.0 request.time=2025-08-21T04:04:30.329Z request.method=GET request.host=bla.com request.path=/api/oidc/clients/59bd0c74-3a7a-4537-9156-2c57643f3900 request.query="" request.params=map[id:59bd0c74-3a7a-4537-9156-2c57643f3900] request.route=/api/oidc/clients/:id request.ip=x.x.x.xrequest.referer=https://bla.com/settings/apps request.length=0 response.time=2025-08-21T04:04:30.332Z response.latency=2.493773ms response.status=403 response.length=60
@stonith404 commented on GitHub:
This should be fixed with #832 and will be available in the next release. Thanks for reporting :)