Sha256: e32517e6325b70fcb61966698e428c42ddbb331f2bef6394cd2152baee36bb50

Contents?: true

Size: 246 Bytes

Versions: 8

Compression:

Stored size: 246 Bytes

Contents

module Renalware
  module UsersHelper

    def current_user_is_super_admin?
      current_user.has_role?(:super_admin)
    end

    def current_user_is_admin?
      current_user.has_role?(:admin) || current_user_is_super_admin?
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta11 app/helpers/renalware/users_helper.rb
renalware-core-2.0.0.pre.beta10 app/helpers/renalware/users_helper.rb
renalware-core-2.0.0.pre.beta9 app/helpers/renalware/users_helper.rb
renalware-core-2.0.0.pre.beta8 app/helpers/renalware/users_helper.rb
renalware-core-2.0.0.pre.beta7 app/helpers/renalware/users_helper.rb
renalware-core-2.0.0.pre.beta6 app/helpers/renalware/users_helper.rb
renalware-core-2.0.0.pre.beta5 app/helpers/renalware/users_helper.rb
renalware-core-2.0.0.pre.beta4 app/helpers/renalware/users_helper.rb