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

--- Comment #5 from Tomás Cohen Arazi <[email protected]> ---
I feel like we either (a) refactor everything and do server-side rendering as
we do now with Template::Toolkit, or (b) provide a way to fetch the module
configuration, as the patch proposes.

I think (a) is not doable or worth. So I pick (b).

I generally agree with an endpoint like /config/:module_name for retrieving
things.
I'd prefer we come up with something more generic than just passing the
allow-listed sysprefs. We could talk about allowed-to-use features like:

{
    features: {
        packages: [ add, update, delete, list ]
    }
}

If we look at our current approach (C4::Auth) it is easy to spot that we also
add information about the permissions the current user has (CAN_<permission>).

I'm not sure about the data structure. We should just copy what other projects
do.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to