]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(user): Can change display name 38088/head
authorChristopher Ng <chrng8@gmail.com>
Thu, 4 May 2023 18:14:49 +0000 (11:14 -0700)
committerChristopher Ng <chrng8@gmail.com>
Thu, 4 May 2023 18:14:49 +0000 (11:14 -0700)
Signed-off-by: Christopher Ng <chrng8@gmail.com>
lib/private/User/User.php

index c3d8af6f358df1eedb2d4da50d0476578b1ed115..ff357a3badbfa83ef91cc9e22578511653e5bdd0 100644 (file)
@@ -416,7 +416,7 @@ class User implements IUser {
         * @return bool
         */
        public function canChangeDisplayName() {
-               if (!$this->config->getSystemValueBool('allow_user_to_change_display_name')) {
+               if (!$this->config->getSystemValueBool('allow_user_to_change_display_name', true)) {
                        return false;
                }
                return $this->backend->implementsActions(Backend::SET_DISPLAYNAME);