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

Protect views users #62

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

mei-li
Copy link
Collaborator

@mei-li mei-li commented Nov 3, 2016

  • Makes Create project available to authenticated users only
  • Sets automatically Project owner
  • Hides participants and coach from create

Closes #43
Closes #52

TODO: @lluminita do you want to have a look in these?

  • Hide participants or modify in edit as well
  • make edit to appear only for the users projects

Owner should be the project creator, participants will join by
themselves and the coach can be assigned after there are
participants joined. (future feature)
success_url = reverse_lazy('project_list')

@method_decorator(login_required)
Copy link
Owner

Choose a reason for hiding this comment

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

what are these method doing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

making sure all the post/get methods will be require login first, otherwise it will fail with 401 I think

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