mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
Fix bug when leaving admin team, setting accepted application as true… (#4090)
* Fix bug when leaving admin team, setting accepted application as true. Fixes #3422 * Addressing PR comments.
This commit is contained in:
parent
2df21b9d83
commit
221365bc9a
@ -35,6 +35,9 @@ pub async fn leave_admin(
|
||||
local_user_view.local_user.id,
|
||||
&LocalUserUpdateForm {
|
||||
admin: Some(false),
|
||||
// Necessary because admins can bypass the registration applications (if they're turned on)
|
||||
// but then won't be able to log in because they haven't been approved.
|
||||
accepted_application: Some(true),
|
||||
..Default::default()
|
||||
},
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user