forward porting ems badge viewing permission fix
This commit is contained in:
parent
5127a307b7
commit
1fb383ec73
2 changed files with 3 additions and 1 deletions
|
|
@ -824,7 +824,8 @@ sub www_getBadgesAsJson {
|
|||
my ($db, $form) = $session->quick(qw(db form));
|
||||
my %results = ();
|
||||
$results{records} = [];
|
||||
foreach my $badge (@{$self->getBadges}) {
|
||||
BADGE: foreach my $badge (@{$self->getBadges}) {
|
||||
next BADGE unless $badge->canView;
|
||||
push(@{$results{records}}, {
|
||||
title => $badge->getTitle,
|
||||
description => $badge->get('description'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue