Skip to content

SAK-51422 Announcement Widget - Now respects close date for instructors #13662

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ottenhoff
Copy link
Contributor

Previously, instructors could see announcements after their close date in the Dashboard and Overview widgets, while students couldn't. This was confusing for instructors who would assume these announcements were visible to students.

Removed the early return for users with read.draft permission, allowing the retract date check to apply to all users including instructors.

🤖 Generated with Claude Code

Zero humans have tested this code.

Previously, instructors could see announcements after their close date in the Dashboard and Overview widgets, while students couldn't. This was confusing for instructors who would assume these announcements were visible to students.

Removed the early return for users with read.draft permission, allowing the retract date check to apply to all users including instructors.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@@ -562,7 +562,8 @@ public boolean isMessageViewable(Message message) {
String siteId = entityManager.newReference(message.getReference()).getContext();

if (unlockCheck(SECURE_READ_DRAFT, siteService.siteReference(siteId))) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Human would have noticed this if is redundant and should have been deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants