mirror of
https://github.com/wassname/talk.git
synced 2026-10-01 12:42:56 +08:00
remove hasRoles
This commit is contained in:
1 parent
14b483d089
commit
e32ab99edf
8 files changed
+87
-27
No files matched your search
@@ -22,7 +22,7 @@ const createComment = ({user, loaders: {Comments}, pubsub}, {body, asset_id, par
|
||||
tags = tags.map(tag => ({name: tag}));
|
||||
|
||||
// If admin or moderator, adding STAFF tag
|
||||
if (user.hasRoles('ADMIN') || user.hasRoles('MODERATOR')) {
|
||||
if (user.isStaff()) {
|
||||
tags.push({name: 'STAFF'});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user