Restrict visibility of 'skipOrdine' field to admin users in FormNewServizioAcquisto
This commit is contained in:
parent
099773b161
commit
b0bbeba2bb
1 changed files with 27 additions and 25 deletions
|
|
@ -1460,6 +1460,7 @@ export const FormNewServizioAcquisto = ({
|
|||
</CardContent>
|
||||
</Card>
|
||||
<div className="flex w-full items-center justify-center gap-2 pb-8 sm:justify-end">
|
||||
{isAdmin && (
|
||||
<FormField
|
||||
control={form.control}
|
||||
name="skipOrdine"
|
||||
|
|
@ -1485,6 +1486,7 @@ export const FormNewServizioAcquisto = ({
|
|||
</FormItem>
|
||||
)}
|
||||
/>
|
||||
)}
|
||||
<Button type="submit" className="w-full sm:w-auto">
|
||||
Salva e Procedi
|
||||
</Button>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue