You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lemmy/crates/api/src/local_user
Nutomic 6047257bfc
Move admin flag from person to local_user (fixes #3060) (#3403)
* Move admin flag from person to local_user (fixes #3060)

The person table is for federated data, but admin flag can only
apply to local users. Thats why it really belongs in the local_user
table. This will also prevent the federation code from accidentally
overwriting the admin flag

* fmt

* try to fix api tests

* lint

* fix person view

* ci

* ci

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
9 months ago
..
notifications Replace Option<bool> with bool for PostQuery and CommentQuery (#3819) (#3857) 10 months ago
add_admin.rs Move admin flag from person to local_user (fixes #3060) (#3403) 9 months ago
ban_person.rs Replace TypedBuilder with Default in update forms (#3814) 10 months ago
block.rs Move admin flag from person to local_user (fixes #3060) (#3403) 9 months ago
change_password.rs Make functions work with both connection and pool (#3420) 11 months ago
change_password_after_reset.rs Dont authenticate user after successful password reset #3714 (#3715) 10 months ago
get_captcha.rs Make functions work with both connection and pool (#3420) 11 months ago
list_banned.rs Make functions work with both connection and pool (#3420) 11 months ago
login.rs Move admin flag from person to local_user (fixes #3060) (#3403) 9 months ago
mod.rs Rewrite some API handlers to remove Perform trait (#3735) 10 months ago
report_count.rs Move admin flag from person to local_user (fixes #3060) (#3403) 9 months ago
reset_password.rs Make functions work with both connection and pool (#3420) 11 months ago
save_settings.rs Replace TypedBuilder with Default in update forms (#3814) 10 months ago
verify_email.rs Replace TypedBuilder with Default in update forms (#3814) 10 months ago