Skip to content

Commit

Permalink
dont allow space manage page in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
vabene1111 committed Jul 13, 2022
1 parent 61a9f06 commit 1cb37fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cookbook/views/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,9 @@ def invite_link(request, token):

@group_required('admin')
def space_manage(request, space_id):
if request.space.demo:
messages.add_message(request, messages.ERROR, _('This feature is not available in the demo version!'))
return redirect('index')
space = get_object_or_404(Space, id=space_id)
switch_user_active_space(request.user, space)
return render(request, 'space_manage.html', {})
Expand Down

0 comments on commit 1cb37fe

Please sign in to comment.