Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[Brainstorming] PRINT permission without FILES_LIST #3419
Is your feature request related to a problem? Please describe.
As an application developer using the API key, I may want to allow users to start a print they just uploaded through my application, but restrict their access to a list of other files already on the OctoPrint instance. In other words: I want users to be able to PRINT without the FILES_LIST permission.
Describe the solution you'd like
Describe alternatives you've considered
You know, you've actually just made me question the sanity of the design decision overall to include permissions in other permissions (unless those other permissions are admin/management permissions). I'll have to poke a bit at the code and try to jog my memory what the reasoning behind that was, since indeed from a strictly permission modelling point of view, it seems a bit arbitrary and tailored to the core UI.
Why sorry? That is a good thing to come up now rather than once 1.4.0 stable is released, so thank you!
I've changed the implementation to not include assumptions about the UI into the permission modelling and so far nothing seems to have broken, so that looks like a sound solution.