Skip to content

Commit

Permalink
Enabling security.
Browse files Browse the repository at this point in the history
  • Loading branch information
futurechimp committed Jun 11, 2011
1 parent dfb0ed8 commit 45dcdc5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions admin/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ class Admin < Padrino::Application
enable :sessions
disable :store_location

# access_control.roles_for :any do |role|
# role.protect "/"
# role.allow "/sessions"
# end
#
# access_control.roles_for :admin do |role|
# role.project_module :wires, "/wires"
# role.project_module :feeds, "/feeds"
# role.project_module :accounts, "/accounts"
# end
access_control.roles_for :any do |role|
role.protect "/"
role.allow "/sessions"
end

access_control.roles_for :admin do |role|
role.project_module :wires, "/wires"
role.project_module :feeds, "/feeds"
role.project_module :accounts, "/accounts"
end
end

0 comments on commit 45dcdc5

Please sign in to comment.