[Git][noosfero/noosfero][master] 2 commits: Removes "owner" Role from account_controller

Rodrigo Souto gitlab at mg.gitlab.com
Mon Oct 9 10:12:14 BRT 2017


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
3051f0b6 by Gabriel Silva at 2017-10-05T23:57:40+00:00
Removes "owner" Role from account_controller

Signed-off-by: Gabriel Silva <gabriel93.silva at gmail.com>

- - - - -
7f061abf by Rodrigo Souto at 2017-10-09T13:12:02+00:00
Merge branch 'owner_role' into 'master'

Removes "owner" Role from account_controller signup

See merge request noosfero/noosfero!1326
- - - - -


1 changed file:

- app/controllers/public/account_controller.rb


Changes:

=====================================
app/controllers/public/account_controller.rb
=====================================
--- a/app/controllers/public/account_controller.rb
+++ b/app/controllers/public/account_controller.rb
@@ -119,8 +119,6 @@ class AccountController < ApplicationController
         else
           @user.community_to_join = session[:join]
           @user.signup!
-          owner_role = Role.find_by(name: 'owner')
-          @user.person.affiliate(@user.person, [owner_role]) if owner_role
           invitation = Task.from_code(@invitation_code).first
           if invitation
             invitation.update! friend: @user.person



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/5584f35be675a48ec1ad832d984a0ff04dcf4896...7f061abf47ee73ae66455569afd0585aa3914824

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/5584f35be675a48ec1ad832d984a0ff04dcf4896...7f061abf47ee73ae66455569afd0585aa3914824
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20171009/8b028d4c/attachment-0001.html>


More information about the Noosfero-dev mailing list