mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix(client): allow admins to open flag modal regardless of flag status
fixes #8078
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user