Ver código fonte

Update fallback privileges for moderators to include reports_manage_reports

Sean King 2 anos atrás
pai
commit
470654d275

+ 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 = []