Sha256: 02a1626837484f2266a8da94af09e6ee227ea7f76cface79a89fb687366d6355

Contents?: true

Size: 449 Bytes

Versions: 7

Compression:

Stored size: 449 Bytes

Contents

class SpecACLHelper < Zen::Controller::AdminController
  map '/admin/spec-acl-helper'

  def index
    if user_authorized?(:spec_permission)
      respond('allowed', 200)
    else
      respond('not allowed', 200)
    end
  end

  def invalid
    if user_authorized?(:invalid_permission)
      respond('allowed', 200)
    else
      respond('not allowed', 200)
    end
  end

  def respond_message
    authorize_user!(:invalid_permission)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
zen-0.4.3 spec/fixtures/zen/package/users/helper/acl.rb
zen-0.4.2 spec/fixtures/zen/package/users/helper/acl.rb
zen-0.4.1 spec/fixtures/zen/package/users/helper/acl.rb
zen-0.4 spec/fixtures/zen/package/users/helper/acl.rb
zen-0.3 spec/fixtures/zen/package/users/helper/acl.rb
zen-0.3b1 spec/fixtures/zen/package/users/helper/acl.rb
zen-0.3b spec/fixtures/zen/package/users/helper/acl.rb