Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542
This commit is contained in:
parent
3b2511d96d
commit
81ccda77eb
2155 changed files with 54307 additions and 46870 deletions
|
|
@ -80,8 +80,11 @@ class UserAccessControlHandler extends EntityAccessControlHandler {
|
|||
$is_own_account = $items ? $items->getEntity()->id() == $account->id() : FALSE;
|
||||
switch ($field_definition->getName()) {
|
||||
case 'name':
|
||||
// Allow view access to anyone with access to the entity.
|
||||
if ($operation == 'view') {
|
||||
// Allow view access to anyone with access to the entity. Anonymous
|
||||
// users should be able to access the username field during the
|
||||
// registration process, otherwise the username and email constraints
|
||||
// are not checked.
|
||||
if ($operation == 'view' || ($items && $account->isAnonymous() && $items->getEntity()->isAnonymous())) {
|
||||
return AccessResult::allowed()->cachePerPermissions();
|
||||
}
|
||||
// Allow edit access for the own user name if the permission is
|
||||
|
|
|
|||
Reference in a new issue