token policy fix
This commit is contained in:
parent
c3dbd59280
commit
6f3c74b7f1
1 changed files with 2 additions and 2 deletions
|
@ -10,11 +10,11 @@ class TokenPolicy < ApplicationPolicy
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def create?
|
def index?
|
||||||
user.present?
|
user.present?
|
||||||
end
|
end
|
||||||
|
|
||||||
def my_tokens?
|
def create?
|
||||||
user.present?
|
user.present?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue