mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-04-26 05:22:21 -04:00
This PR adds a the new v2022.8.x revoke feature which allows an organization owner or admin to revoke access for one or more users. This PR also fixes several permissions and policy checks which were faulty. - Modified some functions to use DB Count features instead of iter/count aftwards. - Rearanged some if statements (faster matching or just one if instead of nested if's) - Added and fixed several policy checks where needed - Some small updates on some response models - Made some functions require an enum instead of an i32
28 lines
917 B
Rust
28 lines
917 B
Rust
mod attachment;
|
|
mod cipher;
|
|
mod collection;
|
|
mod device;
|
|
mod emergency_access;
|
|
mod favorite;
|
|
mod folder;
|
|
mod org_policy;
|
|
mod organization;
|
|
mod send;
|
|
mod two_factor;
|
|
mod two_factor_incomplete;
|
|
mod user;
|
|
|
|
pub use self::attachment::Attachment;
|
|
pub use self::cipher::Cipher;
|
|
pub use self::collection::{Collection, CollectionCipher, CollectionUser};
|
|
pub use self::device::Device;
|
|
pub use self::emergency_access::{EmergencyAccess, EmergencyAccessStatus, EmergencyAccessType};
|
|
pub use self::favorite::Favorite;
|
|
pub use self::folder::{Folder, FolderCipher};
|
|
pub use self::org_policy::{OrgPolicy, OrgPolicyErr, OrgPolicyType};
|
|
pub use self::organization::{Organization, UserOrgStatus, UserOrgType, UserOrganization};
|
|
pub use self::send::{Send, SendType};
|
|
pub use self::two_factor::{TwoFactor, TwoFactorType};
|
|
pub use self::two_factor_incomplete::TwoFactorIncomplete;
|
|
pub use self::user::{Invitation, User, UserStampException};
|