This commit is contained in:
BoHung Chiu 2020-05-17 21:24:56 +08:00
parent 3ed071f486
commit c167388219
1 changed files with 1 additions and 0 deletions

View File

@ -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?