diff --git a/server/pb_schema.json b/server/pb_schema.json index 40ea44e..22e51a5 100644 --- a/server/pb_schema.json +++ b/server/pb_schema.json @@ -398,7 +398,7 @@ "indexes": [], "listRule": "@request.auth.id != \"\" && @collection.bankers.id ?= @request.auth.id", "viewRule": "@request.auth.id != \"\" && @collection.bankers.id ?= @request.auth.id", - "createRule": "@request.auth.id != \"\" && @collection.bankers.id ?= @request.auth.id", + "createRule": "(@request.auth.id != \"\" && @collection.bankers.id ?= @request.auth.id) || (@request.auth.id != \"\" && @collection.companies.id ?= @request.auth.id && amount > 0)", "updateRule": null, "deleteRule": null, "options": {} @@ -450,7 +450,7 @@ "indexes": [], "listRule": "", "viewRule": "", - "createRule": "@request.auth.id != \"\" && @collection.bankers.id ?= @request.auth.id", + "createRule": "(@request.auth.id != \"\" && @collection.bankers.id ?= @request.auth.id) || (@request.auth.id != \"\" && @collection.companies.id ?= @request.auth.id)", "updateRule": null, "deleteRule": null, "options": {} diff --git a/webapp/package.json b/webapp/package.json index 0cf6cfb..7ce6b3c 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -2,7 +2,7 @@ "name": "hgoe-sas", "private": true, "author": "Simon Giesel", - "version": "1.2.1", + "version": "1.3.1", "scripts": { "dev": "vite", "build": "vue-tsc --noEmit && vite build", diff --git a/webapp/src/components/atoms/AtomCurrencyInput.vue b/webapp/src/components/atoms/AtomCurrencyInput.vue index ceb2ed6..f078ebc 100644 --- a/webapp/src/components/atoms/AtomCurrencyInput.vue +++ b/webapp/src/components/atoms/AtomCurrencyInput.vue @@ -1,18 +1,18 @@