Added retired

Added the retired suffix
This commit is contained in:
Jonas Folvik
2016-01-04 21:39:52 +01:00
parent 5585583079
commit 3275c05a5f
3 changed files with 15 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ class ApplicationController < ActionController::Base
helper_method :admin?
helper_method :superadmin?
helper_method :donor?
helper_method :retired?
helper_method :developer?
helper_method :trainingmod?
helper_method :lead_mod?
@@ -74,6 +75,10 @@ class ApplicationController < ActionController::Base
!!(current_user && current_user.donor?)
end
def retired?
!!(current_user && current_user.retired?)
end
def developer?
!!(current_user && current_user.developer?)
end