Fix bug
This commit is contained in:
parent
3ed071f486
commit
c167388219
|
@ -190,6 +190,7 @@ class AnnouncementsController < ApplicationController
|
||||||
else
|
else
|
||||||
announcement = Bulletin.can_display_and_sorted.where(:uid => uid).first
|
announcement = Bulletin.can_display_and_sorted.where(:uid => uid).first
|
||||||
end
|
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" : ""
|
url_to_edit = OrbitHelper.user_can_edit?(announcement) ? "/admin/announcements/#{announcement.id.to_s}/edit" : ""
|
||||||
|
|
||||||
access_level = OrbitHelper.user_access_level?
|
access_level = OrbitHelper.user_access_level?
|
||||||
|
|
Loading…
Reference in New Issue