Permalink
Browse files

allow writing admin flag

  • Loading branch information...
1 parent d41287f commit ffde1830f5a2e1b2f2eb778c1c0a0260939ec060 @machisuji machisuji committed with oliverguenther Jan 9, 2017
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/api/v3/users/user_representer.rb
@@ -99,6 +99,7 @@ def initialize(user, current_user:)
getter: ->(*) {
represented.admin?
},
+ setter: ->(value, *) { represented.admin = value },
if: ->(*) { current_user_is_admin }
property :subtype,
getter: -> (*) { type },

0 comments on commit ffde183

Please sign in to comment.