mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 10:38:50 +01:00
Allow admins to directly set translations
This commit is contained in:
@@ -1,8 +1,3 @@
|
||||
class AdminController < ApplicationController
|
||||
before_action :authenticate!
|
||||
|
||||
def authenticate!
|
||||
authenticate_user!
|
||||
throw(:warden) unless current_user.admin?
|
||||
end
|
||||
before_action :authenticate_admin!
|
||||
end
|
||||
Reference in New Issue
Block a user