Sha256: a9816a0a800623dc552e821718856e1d1a99bd06a3529b80aa35b2e385260256

Contents?: true

Size: 367 Bytes

Versions: 2

Compression:

Stored size: 367 Bytes

Contents

authorization do
  role :guest do
    has_permission_on :admin_accounts, :to => [:show,:edit,:update]
  end

  role :admin do
    includes :guest
    has_permission_on :admin_users, :to => :manage
    has_permission_on :admin_settings, :to => :manage
  end
end

privileges do
	privilege :manage do
		includes :index,:new,:create,:edit,:update,:show,:destroy
	end
end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
radmin-0.2.0 lib/generators/radmin/templates/authorization_rules.rb
radmin-0.2.0 spec/dummy/config/authorization_rules.rb