Vulcan icon indicating copy to clipboard operation
Vulcan copied to clipboard

Add skipPermissionCheck field to context and repsect it in to validateDocument and validat…

Open doronrk opened this issue 5 years ago • 1 comments

…eModifer

This behavior defaults to false.

doronrk avatar Feb 28 '20 20:02 doronrk

Should this be on the context though? That feels weird since the context is not specific to a mutation or a permission check. I'd probably pass a fourth options argument and put the property on that instead, and then base that on an argument of the mutator function (maybe have validateData and validatePermissions while keeping the current validate for backwards compatibility, which would do both?)

SachaG avatar Feb 29 '20 06:02 SachaG