Skip to content

Commit

Permalink
commented out access control until i write a login method for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
futurechimp committed May 31, 2011
1 parent 8efcb69 commit e145782
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 e145782

Please sign in to comment.