aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorRobert2017-06-16 16:49:39 +0200
committerRobert2017-06-16 16:49:39 +0200
commitb4ab063ac14b522883b17ec145d8a2b54bc8adde (patch)
treec0255f416b4e01ecbdc82b5e1db8c92099d77c1b /app/models
parent42f6791028b56fc3b6210eec3a7d312b03634669 (diff)
downloadchouette-core-b4ab063ac14b522883b17ec145d8a2b54bc8adde.tar.bz2
hotfix to avoid redirection loop, not a solution yet; Refs: #3791
Diffstat (limited to 'app/models')
-rw-r--r--app/models/user.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 1a06746da..36dd0e006 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -75,6 +75,8 @@ class User < ActiveRecord::Base
user.synced_at = Time.now
# TODO: Discuss the following behavior in the light of how the portal's permissions will evolve
# boiv:edit-offer does not imply boiv:read-offer, which needs to be provided specifically for any connection rights
+ require 'pry'
+ binding.pry
user.permissions = el['permissions'].include?('boiv:edit-offer') ? @@edit_offer_permissions : []
user.save
end