Disable anonymous access

#697
This commit is contained in:
Artur Beljajev 2018-02-11 03:02:24 +02:00
parent 8d088109cc
commit bfe9ef3c1f
3 changed files with 58 additions and 2 deletions

View file

@ -1,7 +1,6 @@
class Epp::PollsController < EppController
skip_authorization_check # TODO: move authorization under ability
def poll
authorize! :manage, :poll
req_poll if params[:parsed_frame].css('poll').first['op'] == 'req'
ack_poll if params[:parsed_frame].css('poll').first['op'] == 'ack'
end