token policy fix

This commit is contained in:
Devin Howard 2016-10-13 15:21:27 +08:00
parent c3dbd59280
commit 6f3c74b7f1

View file

@ -10,11 +10,11 @@ class TokenPolicy < ApplicationPolicy
end
end
def create?
def index?
user.present?
end
def my_tokens?
def create?
user.present?
end