Index: modules/contrib/field_permissions/src/FieldPermissionsService.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- modules/contrib/field_permissions/src/FieldPermissionsService.php	(revision 1def6d1f0e068bdc912cdcc023bc1aba9daaa7fd)
+++ modules/contrib/field_permissions/src/FieldPermissionsService.php	(revision )
@@ -174,10 +174,16 @@
         if ($account->hasPermission($operation . "_" . $field_name)) {
           return $account->hasPermission($operation . "_" . $field_name);
         }
+        else {
+          if (($items->getEntity()->getEntityTypeId() == 'user') && ($items->getEntity()->id() == $account->id())) {
+            return $account->hasPermission($operation . "_own_" . $field_name);
+          }
-        elseif ($items->getEntity()->getOwnerId() == $account->id()) {
-          return $account->hasPermission($operation . "_own_" . $field_name);
-        }
-      }
+          elseif ($items->getEntity()->getOwnerId() == $account->id()) {
+            return $account->hasPermission($operation . "_own_" . $field_name);
+          }
+        }
+
+      }
       elseif ($operation === "edit") {
         if ($items->getEntity()->isNew()) {
           return $account->hasPermission("create_" . $field_name);
@@ -185,8 +191,13 @@
         if ($account->hasPermission($operation . "_" . $field_name)) {
           return $account->hasPermission($operation . "_" . $field_name);
         }
+        else {
+          if (($items->getEntity()->getEntityTypeId() == 'user') && ($items->getEntity()->id() == $account->id())) {
+            return $account->hasPermission($operation . "_own_" . $field_name);
+          }
-        elseif ($items->getEntity()->getOwnerId() == $account->id()) {
-          return $account->hasPermission($operation . "_own_" . $field_name);
+          elseif ($items->getEntity()->getOwnerId() == $account->id()) {
+            return $account->hasPermission($operation . "_own_" . $field_name);
+          }
         }
       }
     }
