diff options
| author | Robert | 2017-06-16 12:31:33 +0200 |
|---|---|---|
| committer | Robert | 2017-06-16 12:31:33 +0200 |
| commit | 7c83232e747ab468eb4d4ff0eb296ac84a8d25e9 (patch) | |
| tree | f66bfde82cabef8fe4af56d28a749209bd25d1f1 | |
| parent | 1e38848dc427f7fe5bd5b0079c2fb9b1d491dca2 (diff) | |
| download | chouette-core-7c83232e747ab468eb4d4ff0eb296ac84a8d25e9.tar.bz2 | |
Hotfix Refs: #3791@1h
| -rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 1f5260b28..1a06746da 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -46,7 +46,6 @@ class User < ActiveRecord::Base # 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 self.permissions = extra[:permissions].include?('boiv:edit-offer') ? @@edit_offer_permissions : [] - self.permissions += extra[:permissions].grep( %r{^\Aboiv:read-offer\z} ) end def self.portail_api_request @@ -77,7 +76,6 @@ class User < ActiveRecord::Base # 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 user.permissions = el['permissions'].include?('boiv:edit-offer') ? @@edit_offer_permissions : [] - user.permissions += el['permissions'].grep( %r{^\Aboiv:read-offer\z} ) user.save end end |
