mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-16 09:24:00 +00: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
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,9 @@ pub async fn leave_admin(
|
||||||
local_user_view.local_user.id,
|
local_user_view.local_user.id,
|
||||||
&LocalUserUpdateForm {
|
&LocalUserUpdateForm {
|
||||||
admin: Some(false),
|
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()
|
..Default::default()
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue