Sha256: 862ea536b5b71f6cf5187fdb105d3bf16f86219e6206f93c1cbcb4e995dd3300

Contents?: true

Size: 245 Bytes

Versions: 27

Compression:

Stored size: 245 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

27 entries across 27 versions & 1 rubygems

Version Path
renalware-core-2.0.16 app/helpers/renalware/users_helper.rb
renalware-core-2.0.15 app/helpers/renalware/users_helper.rb
renalware-core-2.0.14 app/helpers/renalware/users_helper.rb
renalware-core-2.0.13 app/helpers/renalware/users_helper.rb
renalware-core-2.0.12 app/helpers/renalware/users_helper.rb
renalware-core-2.0.11 app/helpers/renalware/users_helper.rb
renalware-core-2.0.9 app/helpers/renalware/users_helper.rb
renalware-core-2.0.8 app/helpers/renalware/users_helper.rb
renalware-core-2.0.7 app/helpers/renalware/users_helper.rb
renalware-core-2.0.5 app/helpers/renalware/users_helper.rb
renalware-core-2.0.4 app/helpers/renalware/users_helper.rb
renalware-core-2.0.3 app/helpers/renalware/users_helper.rb
renalware-core-2.0.2 app/helpers/renalware/users_helper.rb
renalware-core-2.0.1 app/helpers/renalware/users_helper.rb
renalware-core-2.0.0 app/helpers/renalware/users_helper.rb
renalware-core-2.0.0.pre.rc13 app/helpers/renalware/users_helper.rb
renalware-core-2.0.0.pre.rc11 app/helpers/renalware/users_helper.rb
renalware-core-2.0.0.pre.rc10 app/helpers/renalware/users_helper.rb
renalware-core-2.0.0.pre.rc9 app/helpers/renalware/users_helper.rb
renalware-core-2.0.0.pre.rc8 app/helpers/renalware/users_helper.rb