fix: 🐛 hide auth method create link when grants missing

This commit is contained in:
Randall Morey committed 2021-09-05 09:57:41 -04:00
1 parent 28ebc93179
commit 6b485b9f93
1 file changed
+5 -9
@@ -187,16 +187,12 @@
}}
{{/if}}
</message.description>
<message.link
@route='scopes.scope.auth-methods.new'
@query={{hash type='password'}}
>
<Rose::Icon @name='flight-icons/plus-circle-16' />
{{t 'titles.new'}}
</message.link>
{{#if (can 'create collection' this.scope collection='auth-methods')}}
<message.link @route='scopes.scope.auth-method.new'>
<Rose::Icon @name='plus-circle-outline' />
<message.link
@route='scopes.scope.auth-methods.new'
@query={{hash type='password'}}
>
<Rose::Icon @name='flight-icons/plus-circle-16' />
{{t 'titles.new'}}
</message.link>
{{/if}}