1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-27 02:28:50 +01:00

Fix seed data, improve admin area testing

This commit is contained in:
2019-02-04 13:58:20 +01:00
parent b0f8bc5090
commit d75a88bf6e
3 changed files with 29 additions and 16 deletions

View File

@@ -3,6 +3,6 @@ class AdminController < ApplicationController
def authenticate!
authenticate_user!
raise SecurityError unless current_user.admin?
throw(:warden) unless current_user.admin?
end
end