PLT-1909 Removed the ability to edit system posts (#3013)

* Removed the ability to edit system posts

* Added increased timeout to SpinnerButton unit tests
Этот коммит содержится в:
Harrison Healey
2016-05-17 12:27:03 -04:00
коммит произвёл Christopher Speller
родитель 5580c28e54
Коммит 0fe75cb782
7 изменённых файлов: 28 добавлений и 3 удалений

Просмотреть файл

@@ -85,6 +85,7 @@ export default class RhsComment extends React.Component {
const isOwner = this.props.currentUser.id === post.user_id;
var isAdmin = TeamStore.isTeamAdminForCurrentTeam() || UserStore.isSystemAdminForCurrentUser();
const isSystemMessage = post.type.startsWith(Constants.SYSTEM_MESSAGE_PREFIX);
var dropdownContents = [];
@@ -107,7 +108,7 @@ export default class RhsComment extends React.Component {
);
}
if (isOwner) {
if (isOwner && !isSystemMessage) {
dropdownContents.push(
<li
role='presentation'