From 6d6418858b3817d236e3cd0e76dc8be908226a3f Mon Sep 17 00:00:00 2001 From: Simon Giesel Date: Mon, 17 Jul 2023 21:14:48 +0200 Subject: [PATCH] feat(webapp): show min and max wage and fix permission issues --- server/pb_schema.json | 4 +-- webapp/package.json | 2 +- .../components/atoms/AtomCurrencyInput.vue | 25 ++++++++++++------- .../molecules/MoleculeDataTable.vue | 2 +- webapp/src/components/views/ViewEmployer.vue | 21 +++++++++++++++- 5 files changed, 40 insertions(+), 14 deletions(-) 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 @@