]> git.koha-community.org Git - koha.git/commit
Bug 14391: Add granular permissions to the administration module
authorKatrin Fischer <katrin.fischer.83@web.de>
Sat, 19 May 2018 05:32:14 +0000 (05:32 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 7 Nov 2018 12:29:32 +0000 (12:29 +0000)
commit252f4674a56301c22dda32f2d41985c26f185650
treef8efc3414d507625771c00f69d2386a259e4f356
parent7bd3e6736cf057682ccbd01574d979670e18132b
Bug 14391: Add granular permissions to the administration module

So far the administration module only allowed for 2 permissions:
- circulation conditions (manage_circ_rules)
- everything else (parameters_remaining_permissions)

With this patch almost every section of the administration page
will have its own granular permission.

To test:
- Create different staff users:
  1) One with parameters_remaining_permissions
  2) One with parameters
  3) One with catalogue and no parameters
  4) One superlibrarian
- Apply the patch
- Run the database update
- Check the staff users:
  1) All subpermissions, but manage_circ_rules
     should be checked
  2) Nothing should have changed
  3) manage_item_serach_fields shoudl be checked
     (page had catalogue permission before)
  4) Nothing should have changed
- Try different settings of the permissions and
  verify that
  - Administration page behaves correctly
  - Administration menu behaves correctly
  ! You shoudl only see what you have permission for

https://bugs.koha-community.org/show_bug.cgi?id=14391

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
47 files changed:
admin/audio_alerts.pl
admin/auth_subfields_structure.pl
admin/auth_tag_structure.pl
admin/authorised_values.pl
admin/authtypes.pl
admin/biblio_framework.pl
admin/branch_transfer_limits.pl
admin/branches.pl
admin/categories.pl
admin/checkmarc.pl
admin/cities.pl
admin/classsources.pl
admin/clone-rules.pl
admin/columns_settings.pl
admin/didyoumean.pl
admin/fieldmapping.pl
admin/import_export_framework.pl
admin/item_circulation_alerts.pl
admin/items_search_field.pl
admin/items_search_fields.pl
admin/itemtypes.pl
admin/koha2marclinks.pl
admin/library_groups.pl
admin/localization.pl
admin/marc_subfields_structure.pl
admin/marctagstructure.pl
admin/matching-rules.pl
admin/oai_set_mappings.pl
admin/oai_sets.pl
admin/patron-attr-types.pl
admin/preferences.pl
admin/printers.pl
admin/searchengine/elasticsearch/mappings.pl
admin/sms_providers.pl
admin/sru_modmapping.pl
admin/systempreferences.pl
admin/transport-cost-matrix.pl
admin/usage_statistics.pl
admin/z3950servers.pl
api/v1/swagger/paths/cities.json
installer/data/mysql/atomicupdate/bug14391_granular_admin_permissions.sql [new file with mode: 0644]
installer/data/mysql/userpermissions.sql
koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc
koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc
koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt
svc/config/systempreferences
svc/localization