Skip to content

Commit

Permalink
Bugfix ficoba policies
Browse files Browse the repository at this point in the history
  • Loading branch information
skelz0r committed Aug 22, 2023
1 parent 7ddc9be commit 8cd00ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion backend/app/policies/enrollment/api_ficoba_sandbox_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ class Enrollment::ApiFicobaSandboxPolicy < Enrollment::SandboxPolicy
def permitted_attributes
res = super

res[:scopes] = ficoba_permitted_scopes
res.concat([
scopes: ficoba_permitted_scopes
])
augment_permitted_attributes(res, :additional_content, *ficoba_permitted_acces)

res
end
end
5 changes: 4 additions & 1 deletion backend/app/policies/enrollment/api_ficoba_unique_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ class Enrollment::ApiFicobaUniquePolicy < Enrollment::UniquePolicy
def permitted_attributes
res = super

res[:scopes] = ficoba_permitted_scopes
res.concat([
scopes: ficoba_permitted_scopes
])
augment_permitted_attributes(res, :additional_content, *ficoba_permitted_acces)

res
end
end

0 comments on commit 8cd00ef

Please sign in to comment.