Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixes #25745 - fix permission lookup on custom actions #6359
you'll get the error of parent permission, the problem is that if we specify organization, since the route is /organization/1/host/1/, we try to verify permission for the organization. But we don't know what permission.
So this adds the missing mapping between parent resource permission and custom host actions. For powering host, view organization permission is required.
I don't think we should add a test that verifies this definition. The logic for checking parent permission is being tested already.