Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: 2e391f810d72ef2b694d50b55a40548a946f5af6
https://github.com/openSUSE/open-build-service/commit/2e391f810d72ef2b694d50...
Author: Dani Donisa
Date: 2020-02-26 (Wed, 26 Feb 2020)
Changed paths:
M src/api/app/controllers/webui/package_controller.rb
Log Message:
-----------
Authorize against the linked project instead of the package's project
When we're triggering the build from a linked project, the Pundit Policy checker
for the package fetches the package's project, not the one we're rebuilding
from.
This PR detects if we're triggering the build from a linked project and then
passes that project to Pundit to perform the authorization.
Fixes #6289
Co-authored-by: Henne Vogelsang
Commit: 38059b89c68d103cb23d1c0c53d255f6d5cf4752
https://github.com/openSUSE/open-build-service/commit/38059b89c68d103cb23d1c...
Author: Henne Vogelsang
Date: 2020-02-26 (Wed, 26 Feb 2020)
Changed paths:
M src/api/app/controllers/webui/package_controller.rb
Log Message:
-----------
Merge pull request #9134 from danidoni/can-trigger-rebuild-as-maintainer-of-package
Authorize against the linked project instead of the package's project
Compare: https://github.com/openSUSE/open-build-service/compare/601bb0c0f400...38059b...