[obs-commits] [openSUSE/open-build-service] 2e391f: Authorize against the linked project instead of th...
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 <daniel.donisa@suse.com> 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 <hvogel@opensuse.org> Commit: 38059b89c68d103cb23d1c0c53d255f6d5cf4752 https://github.com/openSUSE/open-build-service/commit/38059b89c68d103cb23d1c... Author: Henne Vogelsang <hvogel@opensuse.org> 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...
participants (1)
-
Henne Vogelsang