]> git.koha-community.org Git - koha.git/commit
Bug 18403: Update permissions - borrowers => 1|* becomes borrowers => 'edit_borrowers'
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 4 Apr 2017 20:45:30 +0000 (17:45 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Feb 2018 18:41:37 +0000 (15:41 -0300)
commit4bc92169dcc04cd0bd586abf01828331711980cc
tree51272dfa0edbb04d55d21add7d8c4c7c9ae1c62e
parent4134df83734d2fabd4806339854cfab41faab82d
Bug 18403: Update permissions - borrowers => 1|* becomes borrowers => 'edit_borrowers'

Test plan:
Login with a patron that only have the 'edit_borrowers' permission.
You should be able to access patron's information of patrons inside of your group.

Technical note:
Before this patchset the borrowers permission module contains only 1 permission 'edit_borrowers'.
That meant
  borrowers => 1
and
  borrowers => '*'
had the same behavior.
Moreover, now that we have 2 permissions, 'CAN_user_borrowers' is set when all
permissions of 'borrowers' are set.
We need to update the different occurrences of these tests.

Signed-off-by: Signed-off-by: Jon McGowan <jon.mcgowan@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
48 files changed:
circ/add_message.pl
circ/del_message.pl
edithelp.pl
koha-tmpl/intranet-tmpl/prog/en/includes/adv-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc
koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/members-menu.inc
koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/files.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
labels/label-item-search.pl
members/boraccount.pl
members/default_messageprefs.pl
members/deletemem.pl
members/discharge.pl
members/discharges.pl
members/files.pl
members/guarantor_search.pl
members/housebound.pl
members/mancredit.pl
members/maninvoice.pl
members/member-password.pl
members/member.pl
members/memberentry.pl
members/members-home.pl
members/members-update-do.pl
members/members-update.pl
members/mod_debarment.pl
members/moremember.pl
members/nl-search.pl
members/notices.pl
members/pay.pl
members/paycollect.pl
members/printfeercpt.pl
members/printinvoice.pl
members/purchase-suggestions.pl
members/readingrec.pl
members/setstatus.pl
members/statistics.pl
members/update-child.pl
opac/opac-overdrive-search.pl
svc/checkouts
svc/members/search