move filter_scope to auth level, filter on apply action, rename constructors

This commit is contained in:
yggverse 2025-01-23 12:30:22 +02:00
parent 089a91d5a2
commit 24adba9065
4 changed files with 31 additions and 29 deletions

View file

@ -34,7 +34,7 @@ impl Identity {
profile_identity_id: &Rc<i64>,
) -> Result<Self, Error> {
// Init components
let auth = match Auth::new(connection) {
let auth = match Auth::build(connection) {
Ok(auth) => Rc::new(auth),
Err(e) => return Err(Error::Auth(e)),
};