Fix bug
This commit is contained in:
parent
3ed071f486
commit
c167388219
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue