Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Associate user with Role #94

Open
damianfarina opened this issue May 22, 2013 · 1 comment
Open

Associate user with Role #94

damianfarina opened this issue May 22, 2013 · 1 comment

Comments

@damianfarina
Copy link

Any idea how to associate a user with a role?
I tried the following:

role = SugarCRM::ACLRole.find_by_name("SomeRole")
user = SugarCRM::User.find_by_user_name "user_name"
role.users << users

but

SugarCRM::InvalidAssociation: Could not lookup association for: #<SugarCRM::Namespace0::ACLRole created_by...

@damianfarina
Copy link
Author

I forgot to mention, I'm using sugarcrm gem (0.9.18) and SugarCRM CE (6.5.12)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant