Module: Ddr::Models::AccessControllable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Base
- Defined in:
- lib/ddr/models/access_controllable.rb
Instance Method Summary collapse
Instance Method Details
#copy_permissions_from(other) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/ddr/models/access_controllable.rb', line 19 def (other) warn "[DEPRECATION] `copy_permissions_from` is deprecated" \ " and should not be used with role-based access control" \ " (#{caller.first})." self. = other..collect { |p| p.to_hash } end |
#set_initial_permissions(user_creator = nil) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/ddr/models/access_controllable.rb', line 10 def (user_creator = nil) warn "[DEPRECATION] `set_initial_permissions` is deprecated" \ " and should not be used with role-based access control" \ " (#{caller.first})." if user_creator self. = [{type: "user", access: "edit", name: user_creator.to_s}] end end |