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

Owner can't modify the organization. #97

Closed
curioswati-zz opened this issue Mar 25, 2016 · 5 comments
Closed

Owner can't modify the organization. #97

curioswati-zz opened this issue Mar 25, 2016 · 5 comments

Comments

@curioswati-zz
Copy link

@curioswati-zz curioswati-zz commented Mar 25, 2016

In the organization create form, when the organization is created, the user is being assigned the owner. But when that user tries to edit the organization, it is redirected to a page saying, "admins only". So can the owner by default not edit the organization it created?

@bennylope
Copy link
Owner

@bennylope bennylope commented Mar 30, 2016

Sounds like the backend is creating the user without setting the admin property on the OrganizationUser. Are you using your own invitation backend class or using the default?

@curioswati-zz
Copy link
Author

@curioswati-zz curioswati-zz commented Mar 30, 2016

I am using default. Although I over rode the view for it. But I think it should be present in default one.

@yitjob
Copy link

@yitjob yitjob commented Apr 2, 2016

I was about to ask the same.
Perhaps here: https://github.com/bennylope/django-organizations/blob/dev/organizations/utils.py#L68 the parameter is_admin should be set to True?

bennylope added a commit that referenced this issue Apr 4, 2016
Where this function is used by other model classes `is_admin` may be
missing, so a conditional check is necessary first.

Closes gh-97
@bennylope bennylope closed this in 701d530 Apr 4, 2016
@bennylope
Copy link
Owner

@bennylope bennylope commented Apr 4, 2016

Thanks for so carefully reporting this. Tested and closed in the latest release.

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.