]> git.koha-community.org Git - koha.git/commit
Bug 22031: Add SQL::Abstract like syntax to haspermission
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Sat, 22 Dec 2018 13:55:23 +0000 (13:55 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 7 Mar 2019 20:50:26 +0000 (20:50 +0000)
commita8be1966f3855d6950021018254819b04a5287c3
treec7722dfaeb596e56059f4e4f37ace5f10c193888
parent29bc2b583264a62c29a0f39dd79a5b3a64721ae6
Bug 22031: Add SQL::Abstract like syntax to haspermission

This patch adds an SQL::Abstract inspired query syntax to the
haspermission method in C4::Auth.  One can now pass Arrayrefs to denote
an OR list of flags, a Hashref to denote a AND list of flags.

Structures can be nested at arbitrary depth.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/Auth.pm
t/db_dependent/Auth/haspermission.t