mirror of
https://github.com/odoo/runbot.git
synced 2025-03-16 16:05:42 +07:00
[FIX] runbot: only logged in users are allowed to kill
As the public user needs to be in runbot user group to display the frontend, the public user is allowed to kill or rebuild a build. With this commit, only the logged in users have access to the Rebuil/Kill menu entry.
This commit is contained in:
parent
d55a71d675
commit
d3e3f75224
@ -66,10 +66,10 @@
|
||||
<li><a t-attf-href="http://{{bu['domain']}}/?db={{bu['real_build'].dest}}-base">Connect base <i class="fa fa-sign-in"></i></a></li>
|
||||
<li><a t-attf-href="http://{{bu['domain']}}/">Connect <i class="fa fa-sign-in"></i></a></li>
|
||||
</t>
|
||||
<li t-if="bu.global_state in ['done','running','deathrow'] and bu_index==0" groups="runbot.group_user">
|
||||
<li t-if="bu.global_state in ['done','running','deathrow'] and bu_index==0" groups="base.group_user">
|
||||
<a href="#" class="runbot-rebuild" t-att-data-runbot-build="bu['id']">Rebuild <i class="fa fa-refresh"/></a>
|
||||
</li>
|
||||
<li t-if="bu.global_state in ['pending','testing', 'waiting', 'running']" groups="runbot.group_user">
|
||||
<li t-if="bu.global_state in ['pending','testing', 'waiting', 'running']" groups="base.group_user">
|
||||
<a href="#" class="runbot-kill" t-att-data-runbot-build="bu['id']">Kill <i class="fa fa-crosshairs"/></a>
|
||||
</li>
|
||||
<li t-if="bu.global_state not in ('testing', 'waiting', 'pending')" class="divider"></li>
|
||||
|
Loading…
Reference in New Issue
Block a user