Skip to content

Owner can't modify the organization. #97

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

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

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

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

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 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?

@curioswati-zz
Copy link
Author

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
Copy link
Owner

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants