fix: Domain admin can see domain in home
This commit is contained in:
parent
8a7e644960
commit
38700ee4cb
3 changed files with 15 additions and 9 deletions
|
|
@ -42,7 +42,7 @@ impl<D: DatabaseInterface> Database<D> {
|
|||
.list_all_domains()
|
||||
.await?
|
||||
.into_iter()
|
||||
.filter(|d| user.role.can_see_domain(&d.name))
|
||||
.filter(|d| user.can_see_domain(&d.name))
|
||||
.collect())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue