From e5a48ab8b42d3d4132f9feebc8a7d2f5433f5aa3 Mon Sep 17 00:00:00 2001 From: Barry O'Donovan Date: Fri, 21 Oct 2022 15:38:14 +0100 Subject: [PATCH] [BF] Don't allow user with priv = 0 [ref: 055-9-13] --- app/Http/Requests/User/Store.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Requests/User/Store.php b/app/Http/Requests/User/Store.php index 923bb847d..db68c5fae 100644 --- a/app/Http/Requests/User/Store.php +++ b/app/Http/Requests/User/Store.php @@ -72,7 +72,7 @@ public function rules(): array 'email' => 'required|email|max:255', 'authorisedMobile' => 'nullable|string|max:50', 'custid' => 'required|integer|exists:cust,id', - 'privs' => 'required|integer|in:' . implode( ',', array_keys( User::$PRIVILEGES_ALL ) ), + 'privs' => 'required|integer|in:' . implode( ',', array_keys( User::$PRIVILEGES ) ), ]; }