Bug 22483: (QA follow-up) Tweaking call to haspermission
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 8 Mar 2019 15:10:20 +0000 (15:10 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 8 Mar 2019 18:26:05 +0000 (15:26 -0300)
commit2b2054e6948477a94408f96c08e4621ae2d2d8ed
tree2d50be46b8970aacb214224a68966fff91e4ebd5
parent6b457885cd325da444d39b031eac567eb0f46351
Bug 22483: (QA follow-up) Tweaking call to haspermission

This patch tweaks the logic to check the permissions is defined before
passing to haspermission.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/REST/V1/Auth.pm