Organization secrets/templates in gitea gives 401. New Gitea API endpoint can fix that

Hi. I put a post here : 401 trying to access organization secrets/templates (gitea) - #7 by rodriciru
But maybe it’s here when it should be, so I will write again.
Organization secrets/templates from Gitea only works for drone admin users. I see that before, Gitea doesn’t provide if a user is an admin of this organization, but now it does.
Gitea API
This endpoint tells if a user is admin. So templates/secrets can be implemented.
I’m not a Go dev, but as for GitHub it’s done, I think it should be not much hassle