Commit 1dd2194d authored by Stan Hu's avatar Stan Hu

Merge branch 'ajk-declarative-policy-1.1.0' into 'master'

Update declarative_policy to v1.1.0

See merge request gitlab-org/gitlab!73831
parents d8ed8fb3 f1e2e5ba
...@@ -24,7 +24,7 @@ gem 'faraday', '~> 1.0' ...@@ -24,7 +24,7 @@ gem 'faraday', '~> 1.0'
gem 'marginalia', '~> 1.10.0' gem 'marginalia', '~> 1.10.0'
# Authorization # Authorization
gem 'declarative_policy', '~> 1.0.0' gem 'declarative_policy', '~> 1.1.0'
# Authentication libraries # Authentication libraries
gem 'devise', '~> 4.7.2' gem 'devise', '~> 4.7.2'
......
...@@ -244,7 +244,7 @@ GEM ...@@ -244,7 +244,7 @@ GEM
html-pipeline html-pipeline
declarative (0.0.20) declarative (0.0.20)
declarative-option (0.1.0) declarative-option (0.1.0)
declarative_policy (1.0.0) declarative_policy (1.1.0)
default_value_for (3.4.0) default_value_for (3.4.0)
activerecord (>= 3.2.0, < 7.0) activerecord (>= 3.2.0, < 7.0)
deprecation_toolkit (1.5.1) deprecation_toolkit (1.5.1)
...@@ -1421,7 +1421,7 @@ DEPENDENCIES ...@@ -1421,7 +1421,7 @@ DEPENDENCIES
crystalball (~> 0.7.0) crystalball (~> 0.7.0)
database_cleaner (~> 1.7.0) database_cleaner (~> 1.7.0)
deckar01-task_list (= 2.3.1) deckar01-task_list (= 2.3.1)
declarative_policy (~> 1.0.0) declarative_policy (~> 1.1.0)
default_value_for (~> 3.4.0) default_value_for (~> 3.4.0)
deprecation_toolkit (~> 1.5.1) deprecation_toolkit (~> 1.5.1)
derailed_benchmarks derailed_benchmarks
......
...@@ -425,9 +425,9 @@ RSpec.describe Ability do ...@@ -425,9 +425,9 @@ RSpec.describe Ability do
expect(keys).to include( expect(keys).to include(
:administrator, :administrator,
'admin', 'admin',
"/dp/condition/BasePolicy/admin/#{user_b.id}" "/dp/condition/BasePolicy/admin/User:#{user_b.id}"
) )
expect(keys).not_to include("/dp/condition/BasePolicy/admin/#{user_a.id}") expect(keys).not_to include("/dp/condition/BasePolicy/admin/User:#{user_a.id}")
end end
# regression spec for re-entrant admin condition checks # regression spec for re-entrant admin condition checks
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment