fix: 🐛 hide auth method create link when grants missing
This commit is contained in:
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}}
|
||||
|
||||
Reference in new issue
Block a user