mirror of
https://github.com/wassname/talk.git
synced 2026-10-29 13:40:57 +08:00
Unprotect User.created_at
This commit is contained in:
1 parent
4eac739568
commit
4dd20260a8
1 file changed
-7
@@ -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
|
||||
|
||||
Reference in new issue
Block a user