Add Maintainer Mode
authorJan Blunck <jblunck@suse.de>
Tue, 20 Jan 2009 15:39:13 +0000 (15:39 +0000)
committerJan Blunck <jblunck@suse.de>
Tue, 20 Jan 2009 15:39:13 +0000 (15:39 +0000)
commit70123183c9709a5b7ea540b644d5eeafee4b0354
tree07023148cb617bb4abadcc73466f690505fb6140
parent6d655a243fb071cb4af2b0c78868c226125aba18
Add Maintainer Mode

This adds access control to all controllers. For certain tasks the user
has to login, e.g. to destroy a report. This should be extended later.
There is one known bug: an authenticated user can delete the last user and
therefore is able to lock himself out.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@17 e17c61c6-bb11-11dd-b423-6fa431a5bf9f
13 files changed:
app/controllers/admin_controller.rb [new file with mode: 0644]
app/controllers/application.rb
app/controllers/report_controller.rb
app/helpers/admin_helper.rb [new file with mode: 0644]
app/views/admin/index.html.erb [new file with mode: 0644]
app/views/admin/login.html.erb [new file with mode: 0644]
app/views/admin/logout.html.erb [new file with mode: 0644]
app/views/report/index.html.erb
app/views/report/search.html.erb
config/environment.rb
db/migrate/20090119112521_create_sessions.rb [new file with mode: 0644]
db/schema.rb
test/functional/admin_controller_test.rb [new file with mode: 0644]