Sha256: f382a7ebfe9e0f074211cab7a9dadf0c20dc58523c793af0fabe3db19c38cee8
Contents?: true
Size: 627 Bytes
Versions: 26
Compression:
Stored size: 627 Bytes
Contents
# Define permissions for your plugin in here. # See https://github.com/stffn/declarative_authorization for further informations. authorization do role :guest do has_permission_on :<%= @plugin_name.tableize %>, :to => [:show] end role :registered do includes :guest end role :author do includes :registered end role :editor do includes :author end role :admin do includes :editor has_permission_on :admin_<%= @plugin_name.tableize %>, :to => [:manage] end end privileges do privilege :manage do includes :index, :new, :create, :show, :edit, :update, :destroy end end
Version data entries
26 entries across 26 versions & 1 rubygems