Commit 5b06c5ba authored by alexpott's avatar alexpott
Browse files

Issue #2388707 by damiankloip: UserAccessControlHandler has wrong...

Issue #2388707 by damiankloip: UserAccessControlHandler has wrong $explicit_check_fields name for the password field when checking field access
parent 30a5046e
...@@ -68,7 +68,7 @@ protected function checkAccess(EntityInterface $entity, $operation, $langcode, A ...@@ -68,7 +68,7 @@ protected function checkAccess(EntityInterface $entity, $operation, $langcode, A
protected function checkFieldAccess($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, FieldItemListInterface $items = NULL) { protected function checkFieldAccess($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, FieldItemListInterface $items = NULL) {
// Fields that are not implicitly allowed to administrative users. // Fields that are not implicitly allowed to administrative users.
$explicit_check_fields = array( $explicit_check_fields = array(
'password', 'pass',
); );
// Administrative users are allowed to edit and view all fields. // Administrative users are allowed to edit and view all fields.
......
...@@ -336,7 +336,7 @@ public function passwordAccessProvider() { ...@@ -336,7 +336,7 @@ public function passwordAccessProvider() {
array( array(
'viewer' => 'admin', 'viewer' => 'admin',
'target' => 'owner', 'target' => 'owner',
'view' => TRUE, 'view' => FALSE,
'edit' => TRUE, 'edit' => TRUE,
), ),
); );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment