I am developing an app for the community, and I was going to wait on revealing it until, it was on the app store but while doing some final testing, I’ve seem to have hit a snag to which I cannot find any information on.
The app works as expected as Admin, but when I try to use it as another user I get a “Logged in user must be an admin” error. This is while trying to save the initial configuration of the app in the user settings section. The odd thing is that this error occurs even before the Connect() controller method even fires.
I guess from your description without looking at the code in depth, that you are missing the annotation@NoAdminRequired. With the more recent Nextcloud core versions, you can use attributes as well. This is a security feature that you must in fact loosen the restrictions. See Controllers — Nextcloud latest Developer Manual latest documentation