Bug 18403: rename Koha::Patron->can to has_permission
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Feb 2018 20:33:18 +0000 (17:33 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Feb 2018 21:02:01 +0000 (18:02 -0300)
commita1686054ac3467bc1770de8f0f5485b208a49e6d
treee9d424ab14a57890e59935ca8416c409f7770401
parent5373bbaf5d1bdfcf997e0f9b2e67962c40374220
Bug 18403: rename Koha::Patron->can to has_permission

I do not exactly why but there is a conflict in the name of the method

prove t/db_dependent/api/v1/patrons.t failed with
[Mon Feb 12 17:13:16 2018] [error] Can't use string ("TO_JSON") as a
HASH ref while "strict refs" in use at
/home/vagrant/kohaclone/C4/Auth.pm line 2053.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Patron.pm
t/db_dependent/api/v1/patrons.t