Method: Cyclid::API::Organization#add_user_org_perm
- Defined in:
- app/cyclid/models/organization.rb
#add_user_org_perm(user) ⇒ Object
Ensure that a set of Userpermissions exist when a User is added to this Organization
52 53 54 55 |
# File 'app/cyclid/models/organization.rb', line 52 def add_user_org_perm(user) Cyclid.logger.debug "Creating org. perm. for #{user.username}" user. << .new(organization: self) end |