Skip to content

Commit

Permalink
feat: Moderate reports
Browse files Browse the repository at this point in the history
Refs: #RW-1058, #RW-1064
  • Loading branch information
attiks committed Sep 19, 2024
1 parent c1bc848 commit c06c1a1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Url;
use Drupal\reliefweb_moderation\EntityModeratedInterface;
use Drupal\reliefweb_moderation\Helpers\UserPostingRightsHelper;
use Drupal\reliefweb_moderation\ModerationServiceBase;
use Drupal\reliefweb_utility\Helpers\UserHelper;

Expand Down Expand Up @@ -109,6 +110,8 @@ public function getRows(array $results) {

// Country and source info.
$info = [];
// User posting rights.
$info['posting_rights'] = UserPostingRightsHelper::renderRight(UserPostingRightsHelper::getEntityAuthorPostingRights($entity));
// Country.
$country_link = $this->getTaxonomyTermLink($entity->field_primary_country->first());
if (!empty($country_link)) {
Expand Down Expand Up @@ -316,6 +319,7 @@ protected function initFilterDefinitions(array $filters = []) {
'original_publication_date',
'author',
'user_role',
'posting_rights',
'reviewer',
'reviewed',
'comments',
Expand Down

0 comments on commit c06c1a1

Please sign in to comment.