Merge branch 'user-sort' of ssh://github.com/coralproject/talk into user-sort

This commit is contained in:
Chi Vinh Le
2017-08-25 20:22:09 +07:00
3 changed files with 7 additions and 15 deletions
+1 -1
View File
@@ -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;
}