Unprotect User.created_at

This commit is contained in:
Chi Vinh Le
2017-08-23 17:32:29 +07:00
parent 4eac739568
commit 4dd20260a8
-7
View File
@@ -22,13 +22,6 @@ const User = {
}
},
created_at({roles, created_at}, _, {user}) {
if (user && user.can(SEARCH_OTHER_USERS)) {
return created_at;
}
return null;
},
comments({id}, {query}, {loaders: {Comments}, user}) {
// If the user is not an admin, only return comment list for the owner of