Fix token auth vs policy bug
This commit is contained in:
parent
9b92b63ca4
commit
e8e97ad3cb
@ -40,7 +40,7 @@ class ApplicationController < ActionController::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def get_footer_tokens
|
def get_footer_tokens
|
||||||
@footer_tokens = authorize Token.all
|
@footer_tokens = policy_scope(Token)
|
||||||
end
|
end
|
||||||
|
|
||||||
def flash_to_http_header
|
def flash_to_http_header
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user