Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
Janusz Kaczmarek e55914a5d0 Bug 30178: (bugs 27526 and 28445 follow-up) Every librarian can edit every item with IndependentBranches on
Problem arises after applying bugfix 27526 and 28445: with
IndependentBranches on, a librarian without superlibrarian privileges,
can edit (and potentially delete) every item (i.e. also from a foreign
branch).  This is because can_be_edited calculation is buggy (in two spots).

Test plan:
1. Have (at least) two branches defined.
2. Have IndependentBranches set.
3. Have a biblio record with items belonging to different branches.
4. Be a librarian without superlibrarian rights, with editcatalogue
   and tool permissions set.

Scenario A (Edit items):
1. Go to Edit -> Edit items view (cataloguing/additems.pl).
2. You will be able to edit every item, also ones not from the branch
   you are from (cf. the button 'Actions').
3. Apply the patch.
4. Repeat 1.
5. You should be able to edit only the items from your branch.

Scenario B (Edit items in batch):
1. From Normal view go to Edit -> Edit items in batch.
2. You will be able to batch edit every item, also ones not from the branch
   you are from.
3. Apply the patch.
4. Repeat 1.
5. You should be able to edit only the items from your branch (and
   see 'Cannot edit' for others.

Scenario C (Delete items in batch):
1. From Normal view go to Edit -> Delete items in batch.
2. You will not see the string 'Cannot delete' and only by chance
   will not be able to activate the checkboxes next to foreign items.
3. Apply the patch.
4. Repeat 1.
5. You should be able to delete only the items from your branch (and
   see 'Cannot delete' for others.

Scenario D and E:
Analogous steps can be executed from Tools -> Batch item modification
and Tools -> Batch item deletion

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-03-03 16:11:50 -10:00
..
access_files.tt
additional-contents.tt Bug 29515: Make title for HTML customizations optional 2022-02-14 21:41:38 -10:00
automatic_item_modification_by_age.tt
batch_delete_records.tt Bug 9565: (follow-up) Adapt batch record deletion tool 2021-12-10 21:15:30 -10:00
batch_extend_due_dates.tt
batch_record_modification.tt
batchMod-del.tt Bug 30178: (bugs 27526 and 28445 follow-up) Every librarian can edit every item with IndependentBranches on 2022-03-03 16:11:50 -10:00
batchMod-edit.tt Bug 30178: (bugs 27526 and 28445 follow-up) Every librarian can edit every item with IndependentBranches on 2022-03-03 16:11:50 -10:00
batchMod.tt
cleanborrowers.tt
csv-profiles.tt
export.tt
holidays.tt
import_borrowers.tt
inventory.tt
letter.tt
manage-marc-import.tt
marc_modification_templates.tt
modborrowers.tt
overduerules.tt
picture-upload.tt Bug 28576: Update the maximum size of an image. 2022-02-14 21:41:38 -10:00
preview_letter.tt
problem-reports.tt
quotes-upload.tt
quotes.tt
scheduler.tt
showdiffmarc.tt
stage-marc-import.tt Bug 29989: Improve headings in MARC staging template 2022-02-21 15:15:47 -10:00
stockrotation.tt Bug 29809: Update stockration tool to reflect method name change 2022-01-31 21:55:40 -10:00
tools-home.tt
upload-images.tt Bug 25025: Drag-and-drop cover image upload 2022-03-01 22:47:46 -10:00
upload.tt Bug 29747: Delete columns that don't exist from settings 2022-01-09 21:04:17 -10:00
viewlog.tt Bug 29869: Teach log viewer about FILL 2022-02-10 14:44:22 -10:00