mirror of
https://github.com/wassname/talk.git
synced 2026-07-02 09:22:01 +08:00
Allow MODERATORs to access tags
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
const decorateWithTags = (typeResolver) => {
|
||||
typeResolver.tags = ({tags = []}, _, {user}) => {
|
||||
if (user && user.hasRoles('ADMIN')) {
|
||||
if (user && (user.hasRoles('ADMIN') || user.hasRoles('MODERATOR'))) {
|
||||
return tags;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user