Skip to content

Commit 0c6e60c

Browse files
committed
updated soft check
1 parent 5b07753 commit 0c6e60c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. For commit
55
## v0.7.9-beta
66

77
**New Features**:
8-
- Admin users get small notification banner for available update in sidebar with link to new release.
8+
- Admin users will get a small notification banner for available update in sidebar with link to new release.
99

1010
**Notes**:
1111
- docker now defaults to ./data/databse.db as the database path allowing a simplified initial docker-compose.yaml. Existing configurations do not need updating.

frontend/src/views/settings/Profile.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
</div>
109109
</div>
110110
<ToggleSwitch
111-
v-if="localuser.permissions.admin"
111+
v-if="localuser.permissions?.admin"
112112
class="item"
113113
v-model="localuser.disableUpdateNotifications"
114114
:name="$t('profileSettings.disableUpdateNotifications')"
@@ -149,7 +149,7 @@ export default {
149149
},
150150
data() {
151151
return {
152-
localuser: { preview: {} },
152+
localuser: { preview: {}, permissions: {} }, // Initialize localuser with empty objects to avoid undefined errors
153153
initialized: false,
154154
formOnlyOfficeExt: "", // holds temporary input before saving
155155
formOfficePreviewExt: "", // holds temporary input before saving

0 commit comments

Comments
 (0)