spec/internal/app/controllers/example_controller.rb in gds-sso-0.7.6 vs spec/internal/app/controllers/example_controller.rb in gds-sso-0.7.7
- old
+ new
@@ -1,12 +1,17 @@
class ExampleController < ApplicationController
- before_filter :authenticate_user!, :only => [:restricted]
+ before_filter :authenticate_user!, :only => [:restricted, :this_requires_signin_permission]
+ before_filter :require_signin_permission!, only: [:this_requires_signin_permission]
def index
render :text => "jabberwocky"
end
def restricted
render :text => "restricted kablooie"
+ end
+
+ def this_requires_signin_permission
+ render :text => "you have signin permission"
end
end