1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-28 09:24:24 +01:00

Fix a bug: minor pb (exception raised) when a bot or unauthenticated user hit api/auth_providers actions

This commit is contained in:
Nicolas Florentin 2023-09-29 14:40:59 +02:00
parent 5cfafaaa46
commit b35acdffaf
2 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,8 @@
## next release
- Fix a bug: minor pb when bot hit api/projects#search without beeing authenticated
- Fix a bug: minor pb (exception raised) when bot hit api/projects#search without beeing authenticated
- Fix a bug: minor pb (exception raised) when a bot or unauthenticated user hit api/auth_providers actions
## v6.1.1 2023 September 28

View File

@ -3,7 +3,9 @@
# API Controller for resources of type AuthProvider
# AuthProvider are used to connect users through single-sign on systems
class API::AuthProvidersController < API::APIController
before_action :authenticate_user!
before_action :set_provider, only: %i[show update destroy]
def index
@providers = policy_scope(AuthProvider)
end