mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Show a helpful forbidden message when monitor access is not authorized
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
{{title "Client " (or model.name model.shortId)}}
|
||||
<ClientSubnav @client={{model}} />
|
||||
<section class="section">
|
||||
<AgentMonitor
|
||||
@level={{level}}
|
||||
@client={{model}}
|
||||
@onLevelChange={{action (mut level)}} />
|
||||
{{#if (can "read agent")}}
|
||||
<AgentMonitor
|
||||
@level={{level}}
|
||||
@client={{model}}
|
||||
@onLevelChange={{action (mut level)}} />
|
||||
{{else}}
|
||||
<ForbiddenMessage @permission="agent:read" />
|
||||
{{/if}}
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user