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

Feature/110 group creation #18

Merged
merged 8 commits into from
Feb 1, 2016
Merged

Feature/110 group creation #18

merged 8 commits into from
Feb 1, 2016

Conversation

tizot
Copy link
Member

@tizot tizot commented Jan 31, 2016

No description provided.

school = School.objects.get(pk=resp_school)
except School.DoesNotExist:
school = None
return group_type == Group.TYPE_BASIC or (school is not None and request.user.has_group_admin_perm(school))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est bizarre ce passage.

  1. Niveau optimisation, on peut mettre le check "group_type == Group.TYPE_BASIC" avant, pour éviter une requête pour la création de groupes basiques.
  2. Niveau logique, n'importe qui peut créer un groupe de type association, tant qu'il met "resp_school = 0" ?

tizot added a commit that referenced this pull request Feb 1, 2016
@tizot tizot merged commit 203d730 into master Feb 1, 2016
@tizot tizot deleted the feature/110-group-creation branch February 1, 2016 09:53
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

Successfully merging this pull request may close these issues.

2 participants