]> git.koha-community.org Git - koha.git/commit
Bug 20128: (QA follow-up) Corrections to haspermission
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 21 Mar 2019 10:16:34 +0000 (10:16 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 17 Apr 2019 12:25:26 +0000 (12:25 +0000)
commit4c01891613f68d5eecc9d971717d2a439be041bb
treea58a41ed57d96d84a409386a1feaed6e88240573
parent8f8367c728112178d4831a9776c55d58eb7ef22b
Bug 20128: (QA follow-up) Corrections to haspermission

The haspermission routine wrongly assumed that get_user_subpermissions
would return a list of all subpermissions if the user had the top level
permission, but instead if just returns 1.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/Auth.pm
t/db_dependent/Auth/haspermission.t