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:
parent
5cfafaaa46
commit
b35acdffaf
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user