mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
release GDT for everyone
This commit is contained in:
parent
8d6c10d2b2
commit
1f9b3a8f1c
@ -51,13 +51,13 @@ class StateBalancesController extends AppController
|
||||
|
||||
//var_dump($user);
|
||||
$gdtSum = 0;
|
||||
if('admin' === $user['role']) {
|
||||
//if('admin' === $user['role']) {
|
||||
$gdtEntries = $this->JsonRequestClient->sendRequestGDT(['email' => $user['email']], 'GdtEntries' . DS . 'sumPerEmailApi');
|
||||
//var_dump($gdtEntries);
|
||||
if('success' == $gdtEntries['state'] && 'success' == $gdtEntries['data']['state']) {
|
||||
$gdtSum = intval($gdtEntries['data']['sum']);
|
||||
}
|
||||
}
|
||||
//}
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ $this->assign('title', __('Kontoübersicht'));
|
||||
<h3><?= __('Aktueller Kontostand: ') ?></h3>
|
||||
<h2><?= $this->element('printGradido', ['number' => $balance]) ?></h2>
|
||||
<?php if($gdtSum > 0) : ?>
|
||||
<h2><?= $this->Html->link($this->element('printGDT', ['number' => $gdtSum]), ['action' => 'overview_gdt'], ['escape' => false]) ?></h2>
|
||||
<h2><?= $this->Html->link($this->element('printGDT', ['number' => $gdtSum]), ['action' => 'overview_gdt'], ['escape' => false]) ?> <span class="gdt-text-color">(<?= __('Testphase')?>)</span></h2>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user