Some field validation rules apply only to certain user roles. It would be great to add support for it.

Comments

manuel.adan created an issue. See original summary.

manuel.adan’s picture

Status: Active » Needs review
StatusFileSize
new6.41 KB
g089h515r806’s picture

Drupal 7 version has this feature.

liquidcms’s picture

StatusFileSize
new93.18 KB

I redid this patch for the latest 8.x-1.x-dev as the patch here fails to apply.

Also, and sorry, this likely should have been split out to a different patch; but the code through this whole module is a bit of a mess with dozens of Drupal coding std violations. I ran Phpstorm's code reformat on the entire module - so that is also part of this patch.

g089h515r806’s picture

I test and commit this feature.
There are still a lot code standards issue for this module.

@liquidcms could you re-run your Phpstorm's code reformat and submit a patch for coding standards?

I write code using notepad++ and not have a code reformat tootls to use.

g089h515r806’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.