diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index fe10b635..80b666e4 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -45,4 +45,12 @@ module ApplicationHelper return nil unless count.count > 0 count.count end + + def privileged? + if current_user && current_user.admin? + true + else + false + end + end end