Skip to content

Commit

Permalink
[BF] Don't allow user with priv = 0 [ref: 055-9-13]
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Oct 21, 2022
1 parent 921f515 commit e5a48ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Requests/User/Store.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ),
];
}

Expand Down

0 comments on commit e5a48ab

Please sign in to comment.