Make sure only admins can change retention

This commit is contained in:
N Pex 2024-02-06 10:31:30 +00:00
parent 42ef05a804
commit e8182714bd
2 changed files with 2 additions and 2 deletions

View file

@ -138,7 +138,7 @@
</v-card-text>
</v-card>
<v-card class="account ma-3" flat v-if="(iAmAdmin() && availableRoomTypes.length > 1) || canChangeReadOnly()">
<v-card class="account ma-3" flat v-if="(iAmAdmin() && availableRoomTypes.length > 1) || canChangeReadOnly() || canViewRetentionPolicy">
<v-card-title class="h2 with-right-label"><div>{{ $t("room_info.experimental_features") }}</div><div></div></v-card-title>
<v-card-text v-if="iAmAdmin() && availableRoomTypes.length > 1">
<div class="d-flex flex-wrap">

View file

@ -111,7 +111,7 @@ export default {
* Return true if we can set message retention policy in the room.
*/
canChangeRetentionPolicy() {
return true;
return this.userCanExportChat;
},
},
watch: {