Created
December 23, 2021 16:57
-
-
Save ichaykin/a5adecf3ae575edce83b8f0627e08bde to your computer and use it in GitHub Desktop.
This file contains 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/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