Просмотр исходного кода

Merge branch 'add/report-users-mod-privilege' into 'fine_grained_moderation_privileges'

Add report manage reports privilege for fallback mods into fine grained FE MR

See merge request ilja/pleroma-fe!1
Ilja 2 лет назад
Родитель
Сommit
650d195f44
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/services/entity_normalizer/entity_normalizer.service.js

+ 2 - 1
src/services/entity_normalizer/entity_normalizer.service.js

@@ -141,7 +141,8 @@ export const parseUser = (data) => {
         ]
       } else if (data.pleroma.is_moderator) {
         output.privileges = [
-          'messages_delete'
+          'messages_delete',
+          'reports_manage_reports'
         ]
       } else {
         output.privileges = []