diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/index.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/index.hbs index 9297cfd32..a2f2d0860 100644 --- a/ui/admin/app/templates/scopes/scope/auth-methods/index.hbs +++ b/ui/admin/app/templates/scopes/scope/auth-methods/index.hbs @@ -187,16 +187,12 @@ }} {{/if}} - - - {{t 'titles.new'}} - {{#if (can 'create collection' this.scope collection='auth-methods')}} - - + + {{t 'titles.new'}} {{/if}} diff --git a/ui/admin/app/templates/scopes/scope/scopes/index.hbs b/ui/admin/app/templates/scopes/scope/scopes/index.hbs index 19a4168d5..18134a990 100644 --- a/ui/admin/app/templates/scopes/scope/scopes/index.hbs +++ b/ui/admin/app/templates/scopes/scope/scopes/index.hbs @@ -26,10 +26,12 @@ - {{#if @model.subScopes}} - - {{t 'titles.new'}} - + {{#if (can 'create collection' @model.currentScope collection='scopes')}} + {{#if @model.subScopes}} + + {{t 'titles.new'}} + + {{/if}} {{/if}} @@ -82,10 +84,14 @@ {{t 'resources.project.description'}} - - - {{t 'titles.new'}} - + {{#if + (can 'create collection' @model.currentScope collection='scopes') + }} + + + {{t 'titles.new'}} + + {{/if}} {{/if}}