Fix token auth vs policy bug

This commit is contained in:
TheNeedful-DO 2023-10-27 07:15:29 +00:00
parent 9b92b63ca4
commit e8e97ad3cb

View File

@ -40,7 +40,7 @@ class ApplicationController < ActionController::Base
end
def get_footer_tokens
@footer_tokens = authorize Token.all
@footer_tokens = policy_scope(Token)
end
def flash_to_http_header