mirror of
https://github.com/wassname/talk.git
synced 2026-08-13 12:40:11 +08:00
Merge branch 'user-sort' of ssh://github.com/coralproject/talk into user-sort
This commit is contained in:
@@ -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