- fixed editable field;

This commit is contained in:
Mykyta Synelnikov
2023-07-04 13:01:04 +03:00
parent a7f3b80d3e
commit efa1a8a636
+1 -1
View File
@@ -2182,7 +2182,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
if ( ! empty( $this->editing ) && 'profile' === $this->set_mode ) {
if ( ! UM()->roles()->um_user_can( 'can_edit_everyone' ) ) {
if ( isset( $data['editable'] ) && 0 === $data['editable'] ) {
if ( empty( $data['editable'] ) ) {
$disabled = ' disabled="disabled" ';
}
}