-
-
Notifications
You must be signed in to change notification settings - Fork 832
Only show editing UI for aliases/related_groups for users /w power #1529
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -262,6 +262,7 @@ module.exports = React.createClass({ | |
items={this.state.domainToAliases[localDomain] || []} | ||
newItem={this.state.newAlias} | ||
onNewItemChanged={this.onNewAliasChanged} | ||
canEdit={this.props.canSetAliases} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems like it ends up preventing you from adding aliases local to your homeserver. The flag given to the class is for canonical aliases, which should certainly be restricted. However arbitrary aliases are different and bypass power levels: matrix-org/synapse#2402 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not convinced this is relevant here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, the current situation is that we hardcode |
||
onItemAdded={this.onLocalAliasAdded} | ||
onItemEdited={this.onLocalAliasChanged} | ||
onItemRemoved={this.onLocalAliasDeleted} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,6 +110,7 @@ module.exports = React.createClass({ | |
items={this.state.newGroupsList} | ||
className={"mx_RelatedGroupSettings"} | ||
newItem={this.state.newGroupId} | ||
canEdit={this.props.canSetRelatedRooms} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I probably missed this in an earlier PR. but should this be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yep! |
||
onNewItemChanged={this.onNewGroupChanged} | ||
onItemAdded={this.onGroupAdded} | ||
onItemEdited={this.onGroupEdited} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea how this is even possible but empirically it's not a syntax error. Babel might be dealing with it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heh, I can well believe that the dot operator accepts whitespace around it