small fix
This commit is contained in:
parent
8490db6992
commit
402562f743
|
@ -238,9 +238,9 @@ class AnnouncementsController < ApplicationController
|
||||||
|
|
||||||
def show_local_announcement(uid, is_preview)
|
def show_local_announcement(uid, is_preview)
|
||||||
if is_preview
|
if is_preview
|
||||||
announcement = Bulletin.find_by(:uid => uid)
|
announcement = Bulletin.where(:uid => uid).first
|
||||||
else
|
else
|
||||||
announcement = Bulletin.can_display.find_by(:uid => uid)
|
announcement = Bulletin.can_display.where(:uid => uid).first
|
||||||
end
|
end
|
||||||
url_to_edit = OrbitHelper.user_can_edit?(announcement) ? "/admin/announcements/#{announcement.id.to_s}/edit" : ""
|
url_to_edit = OrbitHelper.user_can_edit?(announcement) ? "/admin/announcements/#{announcement.id.to_s}/edit" : ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue