Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ichaykin/a5adecf3ae575edce83b8f0627e08bde to your computer and use it in GitHub Desktop.
Save ichaykin/a5adecf3ae575edce83b8f0627e08bde to your computer and use it in GitHub Desktop.
diff --git a/design/backend/templates/views/shippings/update.tpl b/design/backend/templates/views/shippings/update.tpl
index 5c74b6ea16..cef1756bd2 100644
--- a/design/backend/templates/views/shippings/update.tpl
+++ b/design/backend/templates/views/shippings/update.tpl
@@ -244,7 +244,7 @@
</div>
</div>
-{if "MULTIVENDOR"|fn_allowed_for && $allow_save}
+{if "MULTIVENDOR"|fn_allowed_for && $allow_save && $auth.user_type === "UserTypes::ADMIN"|enum}
{hook name="shippings:available_for_new_vendors"}
<div class="control-group">
<label class="control-label" for="available_for_new_vendors">{__("use_for_all_new_vendors")}:</label>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment