Allow AuthorizationControl to run without Warden

As explained in 36c44a5487, it's not normally good to change production code to make testing easier.
But this tiny change makes it more robust, and enables much simpler specs.
This commit is contained in:
David Cook
2022-11-25 15:45:25 +11:00
parent 029c0afaa9
commit ff9544e08b

View File

@@ -32,7 +32,7 @@ module DfcProvider
end
def ofn_user
@request.env['warden'].user
@request.env['warden']&.user
end
def decode_token