diff --git a/app/controllers/announcements_controller.rb b/app/controllers/announcements_controller.rb index 90db09e..cd2781f 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -190,6 +190,7 @@ class AnnouncementsController < ApplicationController else announcement = Bulletin.can_display_and_sorted.where(:uid => uid).first end + announcement = Bulletin.where(:uid => uid).first if announcement.nil? url_to_edit = OrbitHelper.user_can_edit?(announcement) ? "/admin/announcements/#{announcement.id.to_s}/edit" : "" access_level = OrbitHelper.user_access_level?