Main Koha release repository https://koha-community.org
Find a file
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
acqui Bug 29287: Add child funds to display of parent funds on acqui home 2022-03-01 22:47:46 -10:00
admin Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
api
authorities
basket Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
bin
C4 Bug 30035: Fix month name in prediction pattern 2022-03-01 22:47:47 -10:00
catalogue
cataloguing Bug 25616: Uppercase hard coded lower case boolean operators for Elasticsearch 2022-02-24 14:35:36 -10:00
circ Bug 30099: Fix error when accessing circulation.pl without patron parameter 2022-02-21 15:15:47 -10:00
clubs
course_reserves
debian
docs Revert "Bug 20076: Add Thibaud Guillot to contributors" 2022-01-13 22:12:53 -10:00
errors
etc
ill Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
installer Bug 30185: Missing return in db rev 210600003.pl 2022-03-01 22:47:47 -10:00
Koha Bug 30072: Add missing hold actions plugin hooks 2022-03-03 16:11:49 -10:00
koha-tmpl 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
labels Bug 25616: (QA follow-up) Catch a case in labels/label-item-search.pl 2022-02-24 14:35:36 -10:00
lib/CGI/Session/Serialize
members
misc Bug 30132: Fix POD, show correct usage of Getopt::Long 2022-03-01 22:47:46 -10:00
offline_circ
opac Bug 28955: Impact News as well 2022-02-24 14:35:36 -10:00
patron_lists
patroncards
plugins
pos
reports
reserve Bug 29660: Fix conflict with bug 29844 2022-02-22 22:27:29 -10:00
reviews Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
rotating_collections
serials Bug 25616: Uppercase hard coded lower case boolean operators for Elasticsearch 2022-02-24 14:35:36 -10:00
services
skel
suggestion
svc Bug 29844: Fix advanced editor 2022-02-23 22:05:32 -10:00
t Bug 30072: (follow-up) Fix UT after Bug 29857 2022-03-03 16:11:50 -10:00
tags
tmp/modified_authorities
tools Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00
virtualshelves
xt Bug 28617: (QA follow-up) Restore FindBin in two places 2021-12-07 12:16:28 -10:00
.editorconfig
.eslintrc.json
.gitignore
.htaccess Fix file permissions: if it is not a script, it should not be executable. 2010-04-16 00:40:34 -04:00
.mailmap
.perlcriticrc
.proverc.dist
.scss-lint.yml
about.pl
app.psgi
changelanguage.pl
cpanfile Bug 30084: Remove dependency of liblocale-codes-perl (follow-up) 2022-03-01 22:47:46 -10:00
fix-perl-path.PL
gulpfile.js
help.pl
INSTALL
Koha.pm Bug 30060: DBRev 21.12.00.016 2022-02-24 14:35:36 -10:00
koha_perl_deps.pl
kohaversion.pl
LICENSE
mainpage.pl
Makefile.PL
MANIFEST.SKIP Bug 9546 : Updating make manifest tardist 2013-02-06 23:54:46 -05:00
package.json
README Bug 9440 - update Koha's LICENSE file from GPL2 to GPL3 2013-02-12 08:52:10 -05:00
README.md
README.robots
rewrite-config.PL
yarn.lock

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo