Added developer, trainingmod and lead mod as suffixes #3

Closed
ThatSimplex wants to merge 6 commits from master into master
Showing only changes of commit 5585583079 - Show all commits

View File

@@ -16,6 +16,9 @@ class ApplicationController < ActionController::Base
helper_method :admin?
helper_method :superadmin?
helper_method :donor?
helper_method :developer?
helper_method :trainingmod?
helper_method :lead_mod?
helper_method :confirmed?
@@ -71,6 +74,18 @@ class ApplicationController < ActionController::Base
!!(current_user && current_user.donor?)
end
def developer?
!!(current_user && current_user.developer?)
end
def trainingmod?
!!(current_user && current_user.trainingmod?)
end
def lead_mod?
!!(current_user && current_user.lead_mod?)
end
def confirmed?
!!(current_user && current_user.confirmed?)
end