diff --git a/static/directives/fetch-tag-dialog.html b/static/directives/fetch-tag-dialog.html
index 54480562c..d808f0e6c 100644
--- a/static/directives/fetch-tag-dialog.html
+++ b/static/directives/fetch-tag-dialog.html
@@ -42,7 +42,15 @@
allowed-entities="['robot']"
clear-value="clearCounter"
auto-clear="false"
- current-entity="currentEntity">
+ current-entity="currentEntity"
+ ng-show="currentFormat.has_creds">
+
+
+ Fetching a {{ currentFormat.title }} requires a robot account. You must therefore
+ have admin access on namespace {{ repository.namespace }} to setup
+ this fetch.
+
diff --git a/static/js/directives/ui/fetch-tag-dialog.js b/static/js/directives/ui/fetch-tag-dialog.js
index 67c7e7505..57377bf66 100644
--- a/static/js/directives/ui/fetch-tag-dialog.js
+++ b/static/js/directives/ui/fetch-tag-dialog.js
@@ -24,12 +24,13 @@ angular.module('quay').directive('fetchTagDialog', function () {
var updateFormats = function() {
$scope.formats = [];
- if ($scope.repository && UserService.isNamespaceAdmin($scope.repository.namespace)) {
+ if ($scope.repository) {
$scope.formats.push({
'title': 'Squashed Docker Image',
'icon': 'ci-squashed',
'command': 'curl -L -f {http}://{pull_user}:{pull_password}@{hostname}/c1/squash/{namespace}/{name}/{tag} | docker load',
- 'require_creds': true
+ 'require_creds': true,
+ 'has_creds': UserService.isNamespaceAdmin($scope.repository.namespace)
});
}