lib/gds-sso/controller_methods.rb in gds-sso-13.5.0 vs lib/gds-sso/controller_methods.rb in gds-sso-13.5.1

- old
+ new

@@ -42,10 +42,10 @@ end end end def require_signin_permission! - ActiveSupport::Deprecation.warn("require_signin_permission! is deprecated and will be removed in a future version. The signon application checks for signin permission during oauth and it is no longer optional.", caller) + ActiveSupport::Deprecation.warn("require_signin_permission! is deprecated and will be removed in a future version. The signon application checks for signin permission during oauth and it is no longer optional. Note that your application will still need to call authorise_user! if it doesn't already.", caller) authorise_user!('signin') rescue PermissionDeniedException render "authorisations/cant_signin", layout: "unauthorised", status: :forbidden end