parent
f0ef9e3521
commit
b7b28bbc2a
4 changed files with 215 additions and 1 deletions
|
|
@ -2,7 +2,8 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
roomJoinRule: null,
|
||||
userCanChangeJoinRule: false
|
||||
userCanChangeJoinRule: false,
|
||||
userCanPurgeRoom: false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
|
@ -81,9 +82,11 @@ export default {
|
|||
this.$matrix.matrixClient
|
||||
);
|
||||
this.userCanChangeJoinRule = canChangeAccess;
|
||||
this.userCanPurgeRoom = canChangeAccess; //TODO - need different permissions here?
|
||||
} else {
|
||||
this.roomJoinRule = null;
|
||||
this.userCanChangeJoinRule = false;
|
||||
this.userCanPurgeRoom = false;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue