added some ranks
Added lead_mod, trainingmod and developer in one file I missed last time
This commit is contained in:
@@ -16,6 +16,9 @@ class ApplicationController < ActionController::Base
|
|||||||
helper_method :admin?
|
helper_method :admin?
|
||||||
helper_method :superadmin?
|
helper_method :superadmin?
|
||||||
helper_method :donor?
|
helper_method :donor?
|
||||||
|
helper_method :developer?
|
||||||
|
helper_method :trainingmod?
|
||||||
|
helper_method :lead_mod?
|
||||||
helper_method :confirmed?
|
helper_method :confirmed?
|
||||||
|
|
||||||
|
|
||||||
@@ -71,6 +74,18 @@ class ApplicationController < ActionController::Base
|
|||||||
!!(current_user && current_user.donor?)
|
!!(current_user && current_user.donor?)
|
||||||
end
|
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?
|
def confirmed?
|
||||||
!!(current_user && current_user.confirmed?)
|
!!(current_user && current_user.confirmed?)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user