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

Comments

Projects
None yet
3 participants
@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

This comment has been minimized.

Show comment
Hide comment
@bennylope

bennylope Mar 30, 2016

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?

Owner

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

This comment has been minimized.

Show comment
Hide comment
@curioswati-zz

curioswati-zz 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.

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

This comment has been minimized.

Show comment
Hide comment
@yitjob

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

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

This comment has been minimized.

Show comment
Hide comment

bennylope added a commit that referenced this issue Apr 4, 2016

Make organization owner admin user by default
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

This comment has been minimized.

Show comment
Hide comment
@bennylope

bennylope Apr 4, 2016

Owner

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

Owner

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