Sha256: aaeae91b6caa2307fb72df2fca901c2a3164cfeebfd6df39288ed63ede6f8bd4

Contents?: true

Size: 154 Bytes

Versions: 14

Compression:

Stored size: 154 Bytes

Contents

module Admin::AccountsHelper

  def admin_on?(site = current_site)
    site.memberships.detect { |a| a.admin? && a.account == current_admin }
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
locomotive_cms-1.0.0.beta.2 app/helpers/admin/accounts_helper.rb
locomotive_cms-1.0.0.beta app/helpers/admin/accounts_helper.rb
locomotive_cms-0.0.4.beta12 app/helpers/admin/accounts_helper.rb
locomotive_cms-0.0.4.beta11 app/helpers/admin/accounts_helper.rb
locomotive_cms-0.0.4.beta10 app/helpers/admin/accounts_helper.rb
locomotive_cms-0.0.4.beta9 app/helpers/admin/accounts_helper.rb
locomotive_cms-0.0.4.beta8 app/helpers/admin/accounts_helper.rb
locomotive_cms-0.0.4.beta7 app/helpers/admin/accounts_helper.rb
locomotive_cms-0.0.4.beta5 app/helpers/admin/accounts_helper.rb
locomotive_cms-0.0.4.beta4 app/helpers/admin/accounts_helper.rb
locomotive_cms-0.0.4.beta3 app/helpers/admin/accounts_helper.rb
locomotive_cms-0.0.4.beta2 app/helpers/admin/accounts_helper.rb
locomotive_cms-0.0.4.beta1 app/helpers/admin/accounts_helper.rb
locomotive_cms-0.0.4 app/helpers/admin/accounts_helper.rb