Method: SlingUsers::Group#add_member
- Defined in:
- lib/nakamura/users.rb
#add_member(sling, principal, type) ⇒ Object
50 51 52 53 54 |
# File 'lib/nakamura/users.rb', line 50 def add_member(sling, principal, type) principal_path = "/#{$USERMANAGER_URI}#{type}/#{principal}" return sling.execute_post(sling.url_for("#{group_url}.update.html"), { ":member" => principal_path }) end |