mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-24 01:56:40 +03:00
Implement cipher sharing
This commit is contained in:
1 parent
a00ecf228d
commit
8b18c4c633
3 files changed
+55
-3
No files matched your search
@@ -224,6 +224,10 @@ impl UserOrganization {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn has_full_access(self) -> bool {
|
||||
self.access_all || self.type_ < UserOrgType::User as i32
|
||||
}
|
||||
|
||||
pub fn find_by_uuid(uuid: &str, conn: &DbConn) -> Option<Self> {
|
||||
users_organizations::table
|
||||
.filter(users_organizations::uuid.eq(uuid))
|
||||
|
||||
Reference in new issue
Block a user