fix(client): allow admins to open flag modal regardless of flag status

fixes #8078
This commit is contained in:
Blade Barringer
2016-09-28 08:16:06 -05:00
parent eb0e234afa
commit bfc7b9d3e8
2 changed files with 4 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ habitrpg.controller('ChatCtrl', ['$scope', 'Groups', 'Chat', 'User', '$http', 'A
$scope.flagChatMessage = function(groupId,message) {
if(!message.flags) message.flags = {};
if (message.flags[User.user._id]) {
if (!User.user.contributor.admin && message.flags[User.user._id]) {
Notification.text(window.env.t('abuseAlreadyReported'));
} else {
$scope.abuseObject = message;