1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

doh - anyone can set their own tags...

This commit is contained in:
Matthew Hodgson
2016-01-21 15:08:04 +00:00
parent 97d42b3ad7
commit c5099a837b

View File

@@ -455,11 +455,7 @@ module.exports = React.createClass({
}
var can_set_canonical_alias = current_user_level >= canonical_alias_level;
var tag_level = state_default;
if (events_levels['m.tag'] !== undefined) {
tag_level = events_levels['m.tag'];
}
var can_set_tag = current_user_level >= tag_level;
var can_set_tag = true;
var self = this;