Created
November 18, 2011 18:10
-
-
Save andymckay/1377237 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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