varvet--pundit/spec
Kim Burgestrand 44cfa73d72 Require users to explicitly define Scope#resolve
Closes https://github.com/varvet/pundit/pull/711 (original issue and pull request)

> A01:2021-Broken Access Control is the category with the most serious web
application security risk.
>
> Using scope.all in templates violates the principle of least privilege
or deny by default, where access should only be granted for particular
capabilities, roles, or users.
>
> This change improves the security of default templates
>
> Ref: https://owasp.org/Top10/A01_2021-Broken_Access_Control/
— by @tagliala (github.com/tagliala)

Co-authored-by: Duncan Stuart <dgmstuart@gmail.com>
2022-02-11 12:52:24 +01:00
..
policies Use non-monkey-patched describe 2020-07-22 07:57:13 +01:00
authorization_spec.rb Extract Pundit controller authorization module 2022-01-04 17:48:08 +01:00
generators_spec.rb Require users to explicitly define Scope#resolve 2022-02-11 12:52:24 +01:00
policy_finder_spec.rb improve syntax according rubocop 1.24 rules 2022-01-14 11:05:30 -03:00
pundit_spec.rb improve syntax according rubocop 1.24 rules 2022-01-14 11:05:30 -03:00
spec_helper.rb improve syntax according rubocop 1.24 rules 2022-01-14 11:05:30 -03:00