Skip to content

Commit

Permalink
* Only show the new project button when they can acutally add project…
Browse files Browse the repository at this point in the history
…s. This should have gone with the template change.
  • Loading branch information
bgroff committed Oct 23, 2018
1 parent cb19c9c commit 7aa6a25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django_kala/projects/views/projects/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ class ProjectsView(LoginRequiredMixin, TemplateView):

def get_context_data(self, **kwargs):
return {
'can_create': True if self.request.user.get_organizations_with_create() else False,
'organizations': self.request.user.get_organizations(),
}

0 comments on commit 7aa6a25

Please sign in to comment.