diff --git a/src/components/PostPreviewPane.jsx b/src/components/PostPreviewPane.jsx index 16c2a7d6..99455b97 100644 --- a/src/components/PostPreviewPane.jsx +++ b/src/components/PostPreviewPane.jsx @@ -37,9 +37,10 @@ function PostPreviewPane({ && ( diff --git a/src/discussions/common/AlertBanner.jsx b/src/discussions/common/AlertBanner.jsx index ca30a023..4b18c271 100644 --- a/src/discussions/common/AlertBanner.jsx +++ b/src/discussions/common/AlertBanner.jsx @@ -10,7 +10,9 @@ import { Report } from '@edx/paragon/icons'; import { commentShape } from '../comments/comment/proptypes'; import messages from '../comments/messages'; -import { selectModerationSettings, selectUserHasModerationPrivileges, selectUserIsGroupTa } from '../data/selectors'; +import { + selectModerationSettings, selectUserHasModerationPrivileges, selectUserIsGroupTa, selectUserIsStaff, +} from '../data/selectors'; import { postShape } from '../posts/post/proptypes'; import AuthorLabel from './AuthorLabel'; @@ -20,10 +22,13 @@ function AlertBanner({ }) { const userHasModerationPrivileges = useSelector(selectUserHasModerationPrivileges); const userIsGroupTa = useSelector(selectUserIsGroupTa); + const userIsGlobalStaff = useSelector(selectUserIsStaff); const { reasonCodesEnabled } = useSelector(selectModerationSettings); const userIsContentAuthor = getAuthenticatedUser().username === content.author; - const canSeeLastEditOrClosedAlert = (userHasModerationPrivileges || userIsContentAuthor || userIsGroupTa); const canSeeReportedBanner = content?.abuseFlagged; + const canSeeLastEditOrClosedAlert = (userHasModerationPrivileges || userIsGroupTa + || userIsGlobalStaff || userIsContentAuthor + ); return ( <> diff --git a/src/discussions/posts/post-editor/PostEditor.jsx b/src/discussions/posts/post-editor/PostEditor.jsx index adffc4fc..4c93cfbf 100644 --- a/src/discussions/posts/post-editor/PostEditor.jsx +++ b/src/discussions/posts/post-editor/PostEditor.jsx @@ -59,7 +59,7 @@ function DiscussionPostType({ }) { // Need to use regular label since Form.Label doesn't support overriding htmlFor return ( -