Commit 32fdbb231da1acc4f3c580c4a259dba690b4bdf8
1 parent
1f15609c
Exists in
master
and in
23 other branches
ActionItem42: marking TODO
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1380 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
app/models/profile.rb
| ... | ... | @@ -248,6 +248,10 @@ class Profile < ActiveRecord::Base |
| 248 | 248 | end |
| 249 | 249 | |
| 250 | 250 | # Adds a person as member of this Profile. |
| 251 | + # | |
| 252 | + # TODO if the subscription to the profile (closed Community, Enterprise etc) | |
| 253 | + # is not open, instead of affiliating directly this method should create a | |
| 254 | + # suitable task and assign it to the profile. | |
| 251 | 255 | def add_member(person) |
| 252 | 256 | self.affiliate(person, Profile::Roles.member) |
| 253 | 257 | end | ... | ... |