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>
2023-08-24 05:40:08 -04:00
..
notifications Replace Option<bool> with bool for PostQuery and CommentQuery (#3819) (#3857) 2023-08-11 11:13:14 +02:00
add_admin.rs Move admin flag from person to local_user (fixes #3060) (#3403) 2023-08-24 05:40:08 -04:00
ban_person.rs Replace TypedBuilder with Default in update forms (#3814) 2023-08-08 11:41:41 +02:00
block.rs Move admin flag from person to local_user (fixes #3060) (#3403) 2023-08-24 05:40:08 -04:00
change_password.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
change_password_after_reset.rs Dont authenticate user after successful password reset #3714 (#3715) 2023-07-25 13:33:02 -04:00
get_captcha.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
list_banned.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
login.rs Move admin flag from person to local_user (fixes #3060) (#3403) 2023-08-24 05:40:08 -04:00
mod.rs Rewrite some API handlers to remove Perform trait (#3735) 2023-07-28 10:39:38 -04:00
report_count.rs Move admin flag from person to local_user (fixes #3060) (#3403) 2023-08-24 05:40:08 -04:00
reset_password.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
save_settings.rs Replace TypedBuilder with Default in update forms (#3814) 2023-08-08 11:41:41 +02:00
verify_email.rs Replace TypedBuilder with Default in update forms (#3814) 2023-08-08 11:41:41 +02:00