Open Meplos opened 2 years ago
Hello, :vulcan_salute:
I wan't to check role of my user to enable or not modification on my schema. I setup readonly props of my v-form but not affect my vjsf child.
<v-form ref="form" v-model="valid" autocomplete="off" :readonly="!$isGranted(role + 'UPDATE')" >
I also tried to put it in props of my vjsf but doesn't work. :disappointed:
So does solution exist to allow user to update data in all schema or not ?
Thanks , have a good day :sun_with_face:
PS : I know we could had readonly props in properties object but I wan't to avoid that.
See here. You can either set readOnly=true at the top of your schema or use disableAll option.
I didn't know about the readonly prop on v-form, I will try to respect it at some point.
Hello, :vulcan_salute:
I wan't to check role of my user to enable or not modification on my schema. I setup readonly props of my v-form but not affect my vjsf child.
I also tried to put it in props of my vjsf but doesn't work. :disappointed:
So does solution exist to allow user to update data in all schema or not ?
Thanks , have a good day :sun_with_face:
PS : I know we could had readonly props in properties object but I wan't to avoid that.