mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
small fixes
This commit is contained in:
Vendored
-8
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"eslint.autoFixOnSave": true,
|
||||
"editor.tabSize": 2,
|
||||
"editor.rulers": [
|
||||
80
|
||||
],
|
||||
"files.trimTrailingWhitespace": true
|
||||
}
|
||||
@@ -42,7 +42,7 @@ const User = {
|
||||
return null;
|
||||
},
|
||||
tokens({id, tokens}, args, {user}) {
|
||||
if (!user || ((user.id !== id) && !user.can(LIST_OWN_TOKENS))) {
|
||||
if (!user || ((user.id !== id) && !user.can(LIST_OWN_TOKENS))) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user