added some ranks

Added lead_mod, trainingmod and developer in one file I missed last time
This commit is contained in:
Jonas Folvik
2016-01-01 15:05:29 +01:00
parent ccac3fc975
commit 5585583079

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