Users are able to change the linked user, but not the supposed fields #509
Labels
No labels
Security
TeX
auto-update
board
done
board
ready
board
todo
check
delete-eslint-rc-js
check
update-builddeps-package-json
check
update-eslint-rc-js
check
update-gitignore
check
update-merge-request-template
check
update-prettier-ignore
check
update-pyproject-toml
check
update-renovate-json
check
update-tox-ini
part
backend
part
ci
part
docs
part
frontend
part
i18n
part
non-technical
part
packaging
prio
1
prio
2
prio
3
release-mr-5.x
size
large
size
medium
size
small
source
customer
source
customer::fsmw
source
customer::fss
source
customer::teckids
source
downstream
type
breaking
type
bug
type
feature
type
refactoring
workflow
blocked
workflow
confirmed
workflow
current-todo
workflow
discussing
workflow
new-app
workflow
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aleksis/AlekSIS-Core#509
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
If you allow users to edit fields on themselves (e.g. last_name), they are theoretically able to change the linked user. Django will throw an error because
django.db.utils.IntegrityError: duplicate key value violates unique constraint "core_person_user_id_key", but this is not an security feature…Funniest thing about: Users are NOT able to change the configured allowed fields.
assigned to @debdolph
created merge request !2362 to address this issue
mentioned in merge request !2362
changed the description
assigned to @hansegucker and unassigned @debdolph
changed title from Users are able to change the linked user to Users are able to change the linked user{+, but not the supposed fields+}
created merge request !2397 to address this issue
mentioned in merge request !2397
mentioned in commit
1290e631a4