Skip to content
Snippets Groups Projects

Issue #3055319: Constraint violations are not triggered for Roles on a user's account form

Open Issue #3055319: Constraint violations are not triggered for Roles on a user's account form
1 unresolved thread
1 unresolved thread

Closes #3055319

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
20 21 $form['access']['#value'] = \Drupal::currentUser()->hasPermission('cancel other accounts');
21 22 }
22 23
24 /**
25 * Implements hook_entity_base_field_info_alter().
26 */
27 #[Hook('entity_base_field_info_alter')]
28 public function entityBaseFieldInfoAlter(&$fields, EntityTypeInterface $entity_type): void {
29 if ($entity_type->id() === 'user' && \Drupal::state()->get('user_form_test_constraint_roles_edit')) {
  • Ide Braakman added 216 commits

    added 216 commits

    • 6fea54ed...50ea7698 - 214 commits from branch project:11.x
    • c63362dc - Merge remote-tracking branch 'origin/11.x' into 3055319-roles-constraint-violations
    • 38c6b409 - Replace state with key/value in test coverage

    Compare with previous version

  • Ide Braakman added 70 commits

    added 70 commits

    • 38c6b409...1a2079a4 - 69 commits from branch project:11.x
    • 848dcf46 - Merge remote-tracking branch 'origin/11.x' into 3055319-roles-constraint-violations

    Compare with previous version

  • Please register or sign in to reply
    Loading