Compare commits
1 commit
1.0.0-rc.0
...
main
Author | SHA1 | Date | |
---|---|---|---|
c20f123e80 |
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ Rails.application.config.to_prepare do
|
||||||
api_key = ApiKey.active.with_key(token).first
|
api_key = ApiKey.active.with_key(token).first
|
||||||
allowed = false
|
allowed = false
|
||||||
if api_key
|
if api_key
|
||||||
allowed = api_key.api_key_scopes.any? { |s| s.resource == "scim" || s.action == "access_scim_endpoints" }
|
allowed = api_key.api_key_scopes.empty? || api_key.api_key_scopes.any? { |s| s.resource == "scim" || s.action == "access_scim_endpoints" }
|
||||||
end
|
end
|
||||||
allowed
|
allowed
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue