starting ad_banner auth
This commit is contained in:
1 parent
2cd67356a5
commit
0a9f0bcc45
5 files changed
+17
-3
No files matched your search
Vendored
+1
-1
@@ -2,7 +2,7 @@ module Panel::Announcement::BackEnd::BulletinsHelper
|
||||
|
||||
def show_approval_link(bulletin)
|
||||
by_bulletin = (!bulletin.is_expired? and !bulletin.is_checked?)
|
||||
by_user = (bulletin.bulletin_category.authed_users('fact_check').include?(current_user) or is_manager?)
|
||||
by_user = (bulletin.bulletin_category.authed_users('fact_check').include?(current_user) or is_manager? or is_admin?)
|
||||
by_bulletin and by_user
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user