We have an environment (not default) which nobody has access to, other than one admin account which we use for administration and deployment. Within this environment we have one PowerApp and one connection to our Azure SQL database, which the app uses.
The app is shared with all users in the organisation via an AAD group ("User", not "Co-owner" permissions), and they access it with a direct link from our intranet. The SQL connection is also shared with the entire organisation to allow the app to function (without sharing it users got an error when launching the app), but again as nobody has access to the environment that should be alright - they can't create their own apps and use this connection.
The problem comes when the download button and the PowerApps desktop app come in to play.

By clicking the download button and opening the app in the desktop client, I am then presented with an option to edit the app. This launches the web-based PowerApps studio in the scope of the environment. Bear in mind I have no permissions on this app other than as a user.



From here, I can then edit the app to my heart's content. What's the big deal? Well, I might have a gallery where I filter the items based on the current user. A user could remove this filter and see records belonging to their colleagues. If an app was for something sensitive then this could open up a whole world of issues.
Am I missing something here? This seems like a massive security hole and is quite baffling. Why can I, with lowly user permissions, get anywhere near the editor in the context of this environment?

Edited with in-line images