Bug 38885 - Hide "Access files" if no access_dir is set
Summary: Hide "Access files" if no access_dir is set
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Tools (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-14 09:47 UTC by Magnus Enger
Modified: 2025-01-14 09:47 UTC (History)
0 users

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Enger 2025-01-14 09:47:01 UTC
Since bug 11317 we can set access_dir in koha-conf.xml, and have files from one or more directories on the server shown in the staff client. 

But if no access_dir is set in koha_conf.xml the "Access files" tool is still shown in the Tools > "Additional tools" menu. If a staff user clicks on "Access files", this message is shown: 

Error: Files could not be found because the "access_dir" option was not set in "koha-conf.xml". Contact your system administrator to add this option.

There is no error if this feature is not really being used. 

The best option IMO would be to hide "Access files" if no access_dir is set. An alternative could be to change the "error" message, to just say something like "This feature has not been configured".