Skip to content

Commit

Permalink
Remove instance users from user list to show
Browse files Browse the repository at this point in the history
  • Loading branch information
KitaitiMakoto committed Mar 6, 2023
1 parent 97cbe7f commit cfa74f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plume-models/src/users.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ impl User {
pub fn get_local_page(conn: &Connection, (min, max): (i32, i32)) -> Result<Vec<User>> {
users::table
.filter(users::instance_id.eq(Instance::get_local()?.id))
.filter(users::role.ne(Role::Instance as i32))
.order(users::username.asc())
.offset(min.into())
.limit((max - min).into())
Expand Down

0 comments on commit cfa74f8

Please sign in to comment.