vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 40c339db9bf197e4711f4a0438a0d06af44b919b
parent 402c1cd06cf263b6af22825d425e6081c0969f1c
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Sat, 14 Mar 2020 23:52:16 +0100

Fix postgres policies, second try

Diffstat:
Msrc/db/models/org_policy.rs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/db/models/org_policy.rs b/src/db/models/org_policy.rs @@ -63,8 +63,8 @@ impl OrgPolicy { // not support multiple constraints on ON CONFLICT clauses. diesel::delete( org_policies::table - .filter(org_policies::org_uuid.eq(self.org_uuid)) - .filter(org_policies::atype.eq(self.atype)), + .filter(org_policies::org_uuid.eq(&self.org_uuid)) + .filter(org_policies::atype.eq(&self.atype)), ) .execute(&**conn) .map_res("Error deleting org_policy for insert")?;