Sha256: 0976cdb051637048ebf194c4b42776d64c57c041dc0e22f8ac37e7c7d0802a9f
Contents?: true
Size: 721 Bytes
Versions: 5
Compression:
Stored size: 721 Bytes
Contents
authorization do role :guest do has_permission_on :<%= user_plural_name %>, :to => :create end role :<%= user_singular_name %> do includes :guest has_permission_on :<%= user_plural_name %>, :to => :show has_permission_on :<%= user_plural_name %>, :to => :update do if_attribute :id => is { <%= user_singular_name %>.id } end end role :admin do has_permission_on :users, :to => [:manage, :mass_new, :mass_create] end end privileges do privilege :manage, :includes => [:create, :read, :update, :delete] privilege :read, :includes => [:index, :show] privilege :create, :includes => :new privilege :update, :includes => :edit privilege :delete, :includes => :destroy end
Version data entries
5 entries across 5 versions & 1 rubygems