sms-pager/app/helpers/access_helper.rb
2015-10-19 22:05:48 -05:00

14 lines
208 B
Ruby

module AccessHelper
def can_create_user? user
user && user.admin?
end
def can_edit_user? user
user && user.admin?
end
def can_page? user
user && (user.admin? || user.staff?)
end
end