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

Version Path
makandra-aegis-1.1.1 test/app_root/app/models/permissions.rb
makandra-aegis-1.1.2 test/app_root/app/models/permissions.rb
aegis-1.1.8 test/app_root/app/models/permissions.rb
thelinuxlich-aegis-1.1.9 test/app_root/app/models/permissions.rb
thelinuxlich-aegis-1.1.8 test/app_root/app/models/permissions.rb
thelinuxlich-aegis-1.1.7 test/app_root/app/models/permissions.rb
aegis-1.1.7 test/app_root/app/models/permissions.rb
aegis-1.1.6 test/app_root/app/models/permissions.rb
aegis-1.1.5 test/app_root/app/models/permissions.rb
aegis-1.1.4 test/app_root/app/models/permissions.rb
aegis-1.1.3 test/app_root/app/models/permissions.rb