[obs-commits] [openSUSE/open-build-service] 73279f: [frontend] Fix policy check in token controller

Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 73279f23d5a02e56c687b7ac0afd6eef378451c1 https://github.com/openSUSE/open-build-service/commit/73279f23d5a02e56c687b7... Author: Björn Geuken <bgeuken@suse.de> Date: 2018-06-01 (Fri, 01 Jun 2018) Changed paths: M src/api/app/controllers/person/token_controller.rb M src/api/spec/controllers/person/token_controller_spec.rb Log Message: ----------- [frontend] Fix policy check in token controller Users (eg. admins and in case of bot accounts) can request tokens of other users. Though if the requested user does not exist we would check the policy of nil and cause a failure. Instead we are now setting the nobody user when no valid user could be found. Commit: 620af28303ae0f9b500e26b0b23aa0cde205568f https://github.com/openSUSE/open-build-service/commit/620af28303ae0f9b500e26... Author: Ana María Martínez Gómez <ammartinez@suse.de> Date: 2018-06-01 (Fri, 01 Jun 2018) Changed paths: M src/api/app/controllers/person/token_controller.rb M src/api/spec/controllers/person/token_controller_spec.rb Log Message: ----------- Merge pull request #5066 from bgeuken/bugfix/token_controller [frontend] Fix policy check in token controller Compare: https://github.com/openSUSE/open-build-service/compare/f5240ba0cb39...620af2... **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.
participants (1)
-
Ana María Martínez Gómez