Fix seed data, improve admin area testing

This commit is contained in:
pfischbeck committed 2019-02-04 13:58:20 +01:00
1 parent b0f8bc5090
commit d75a88bf6e
3 files changed
+29 -16

No files matched your search

+1 -1
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