diff options
| author | Vlatka Pavisic | 2017-04-13 16:14:59 +0200 |
|---|---|---|
| committer | Vlatka Pavisic | 2017-04-13 16:15:05 +0200 |
| commit | 7dbafc403f96c6aad2ed6862f1234ce76d7d123a (patch) | |
| tree | c4d62f5ee46c86db1289c9a74735ce41e9a8db2a /spec/support/devise.rb | |
| parent | bc09c8f16726f520c116e158ef3390dc84736bd2 (diff) | |
| download | chouette-core-7dbafc403f96c6aad2ed6862f1234ce76d7d123a.tar.bz2 | |
Refs #3128 : Modify ReferentialPolicy to check user permissions
Diffstat (limited to 'spec/support/devise.rb')
| -rw-r--r-- | spec/support/devise.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/support/devise.rb b/spec/support/devise.rb index 0e3ceefac..14e316bea 100644 --- a/spec/support/devise.rb +++ b/spec/support/devise.rb @@ -8,7 +8,8 @@ module DeviseRequestHelper 'vehicle_journeys.create', 'vehicle_journeys.edit', 'vehicle_journeys.destroy', 'time_tables.create', 'time_tables.edit', 'time_tables.destroy', 'footnotes.edit', 'footnotes.create', 'footnotes.destroy', 'routing_constraint_zones.create', 'routing_constraint_zones.edit', 'routing_constraint_zones.destroy', 'access_points.create', 'access_points.edit', 'access_points.destroy', 'access_links.create', 'access_links.edit', 'access_links.destroy', - 'connection_links.create', 'connection_links.edit', 'connection_links.destroy', 'route_sections.create', 'route_sections.edit', 'route_sections.destroy']) + 'connection_links.create', 'connection_links.edit', 'connection_links.destroy', 'route_sections.create', 'route_sections.edit', 'route_sections.destroy', + 'referentials.create', 'referentials.edit', 'referentials.destroy']) login_as @user, :scope => :user # post_via_redirect user_session_path, 'user[email]' => @user.email, 'user[password]' => @user.password end @@ -44,7 +45,8 @@ module DeviseControllerHelper 'vehicle_journeys.create', 'vehicle_journeys.edit', 'vehicle_journeys.destroy', 'time_tables.create', 'time_tables.edit', 'time_tables.destroy', 'footnotes.edit', 'footnotes.create', 'footnotes.destroy', 'routing_constraint_zones.create', 'routing_constraint_zones.edit', 'routing_constraint_zones.destroy', 'access_points.create', 'access_points.edit', 'access_points.destroy', 'access_links.create', 'access_links.edit', 'access_links.destroy', - 'connection_links.create', 'connection_links.edit', 'connection_links.destroy', 'route_sections.create', 'route_sections.edit', 'route_sections.destroy']) + 'connection_links.create', 'connection_links.edit', 'connection_links.destroy', 'route_sections.create', 'route_sections.edit', 'route_sections.destroy', + 'referentials.create', 'referentials.edit', 'referentials.destroy']) sign_in @user end end |
