Web-API: Make library info available for administrator

The current Web-API only allows the owner of a library to get the library info, even as administrator you get a permission denied error:

curl -G -H “Authorization: Token 7663817abcdefgh5392d5969146e76bd3b50bc7b” -H ‘Accept: application/json; indent=4’ https://seafile.some.whe.re/api2/repos/24dbd1d7-748e-4673-b847-ce8229908be3/
{
“error_msg”: “You do not have permission to access this library.”
}

It would be very useful for scripting to have access to the library info.

If you enable ENABLE_SYS_ADMIN_VIEW_REPO https://manual.seafile.com/config/seahub_settings_py.html , you can list folders using the admin only API: https://manual.seafile.com/develop/web_api_v2.1.html#admin-only-get-library-dirents

Thank you, that gives the information (the repo name) that I needed.