Sha256: aa326cb1ffb873cfb8b78a5b6c8f08779c6fbb645bf47b74e82489494dcf6b81
Contents?: true
Size: 701 Bytes
Versions: 11
Compression:
Stored size: 701 Bytes
Contents
class Permissions < Aegis::Permissions role :guest role :student role :admin, :default_permission => :allow permission :use_empty do end permission :use_simple do allow :student deny :admin end permission :update_users do allow :student deny :admin end permission :crud_projects do allow :student end permission :edit_drinks do allow :student deny :admin end permission :hug do allow :everyone end permission :divide do |user, left, right| allow :student do right != 0 end end permission :draw do allow :everyone end permission :draw do deny :student deny :admin end end
Version data entries
11 entries across 11 versions & 3 rubygems