diff options
Diffstat (limited to 'webapp/components/post_info.jsx')
-rw-r--r-- | webapp/components/post_info.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/components/post_info.jsx b/webapp/components/post_info.jsx index 3f81672e1..50b03c0be 100644 --- a/webapp/components/post_info.jsx +++ b/webapp/components/post_info.jsx @@ -5,6 +5,8 @@ import $ from 'jquery'; import * as Utils from 'utils/utils.jsx'; import TimeSince from './time_since.jsx'; import * as GlobalActions from 'action_creators/global_actions.jsx'; +import TeamStore from 'stores/team_store.jsx'; +import UserStore from 'stores/user_store.jsx'; import Constants from 'utils/constants.jsx'; @@ -30,7 +32,7 @@ export default class PostInfo extends React.Component { createDropdown() { var post = this.props.post; var isOwner = this.props.currentUser.id === post.user_id; - var isAdmin = Utils.isAdmin(this.props.currentUser.roles); + var isAdmin = TeamStore.isTeamAdminForCurrentTeam() || UserStore.isSystemAdminForCurrentUser(); if (post.state === Constants.POST_FAILED || post.state === Constants.POST_LOADING || Utils.isPostEphemeral(post)) { return ''; |