Skip to content

Instantly share code, notes, and snippets.

@andymckay
Created November 18, 2011 18:10
Show Gist options
  • Save andymckay/1377237 to your computer and use it in GitHub Desktop.
Save andymckay/1377237 to your computer and use it in GitHub Desktop.
diff --git a/apps/amo/context_processors.py b/apps/amo/context_processors.py
index c76443a..97d2e87 100644
--- a/apps/amo/context_processors.py
+++ b/apps/amo/context_processors.py
@@ -66,11 +66,11 @@ def global_settings(request):
'href': remora_url('/users/logout?to=' + urlquote(request.path)),
})
- if request.amo_user.is_developer:
- tools_links.append({'text': _('Manage My Add-ons'),
- 'href': reverse('devhub.addons')})
-
- tools_links.append({'text': _('Submit a New Add-on'),
+ if not settings.APP_PREVIEW:
+ if request.amo_user.is_developer:
+ tools_links.append({'text': _('Manage My Add-ons'),
+ 'href': reverse('devhub.addons')})
+ tools_links.append({'text': _('Submit a New Add-on'),
'href': reverse('devhub.submit.1')})
if waffle.flag_is_active(request, 'accept-webapps'):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment