fix code
This commit is contained in:
parent
7f3b090bb7
commit
1bbf89a354
|
@ -21,7 +21,7 @@ class Panel::Announcement::BackEnd::ApprovalsController < OrbitBackendControlle
|
||||||
@bulletin_category = @bulletin_categorys.first
|
@bulletin_category = @bulletin_categorys.first
|
||||||
end
|
end
|
||||||
preload_object_auth = @bulletin_category.get_object_auth_by_title('fact_check')
|
preload_object_auth = @bulletin_category.get_object_auth_by_title('fact_check')
|
||||||
@users_array = preload_object_auth.first.privilege_users rescue []
|
@users_array = preload_object_auth.privilege_users rescue []
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html
|
format.html
|
||||||
format.js
|
format.js
|
||||||
|
|
|
@ -21,7 +21,7 @@ class Panel::News::BackEnd::NewsApprovalsController < OrbitBackendController
|
||||||
@news_bulletin_categorys = @news_bulletin_categorys.first
|
@news_bulletin_categorys = @news_bulletin_categorys.first
|
||||||
end
|
end
|
||||||
preload_object_auth = @news_bulletin_categorys.get_object_auth_by_title('fact_check')
|
preload_object_auth = @news_bulletin_categorys.get_object_auth_by_title('fact_check')
|
||||||
@users_array = preload_object_auth.first.privilege_users rescue []
|
@users_array = preload_object_auth.privilege_users rescue []
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html
|
format.html
|
||||||
format.js
|
format.js
|
||||||
|
|
Reference in New Issue