Skip to content
Snippets Groups Projects
Commit fef1114c authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #72825 admin can now access to abonne/prets from abonne/fiche

parent f00a3220
Branches
Tags
3 merge requests!2713Dev#72825 contractuel bdp64 afficher la colonne reserve par d autres,!2707Tessadoc lost pass,!2702Dev#72825 contractuel bdp64 afficher la colonne reserve par d autres
Pipeline #4423 failed with stage
in 30 minutes and 33 seconds
......@@ -22,7 +22,7 @@
class ZendAfi_View_Helper_Abonne_Prets extends ZendAfi_View_Helper_Abonne_Abstract {
public function abonne_prets($user) {
$cards = new Class_User_Cards($user);
if ($cards->isEmpty())
if ($cards->isEmpty() && (!$user->isAdmin()))
return '';
$nb_prets = $cards->getLoans()->count();
......
......@@ -58,8 +58,8 @@ class AbonneControllerFicheAsAdminTest extends AbstractAbonneControllerFicheTest
/** @test */
public function linkToPretsShouldNotBePresent() {
$this->assertNotXPath('//a[contains(@href, "/abonne/prets")]');
public function linkToPretsShouldBePresent() {
$this->assertXPath('//a[contains(@href, "/abonne/prets")]');
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment