Unverified Commit 0bd884c4 authored by Fernando Verdugo's avatar Fernando Verdugo Committed by GitHub
Browse files

feat(grant): Add more option to grant (#1405)



Allow change machine options if user is granted change_settings

closes Issue #1404
Co-authored-by: default avatarfv3rdugo <fv3rdugo@gmail.com>
parent 161e6066
......@@ -112,7 +112,7 @@
</div>
</div>
% if ($USER->is_admin){
% if ($USER->can_change_settings){
<div class="row">
<div class="col-lg-3 mt-2">
<label class="control-label" for="timeout">Timeout</label>
......@@ -126,7 +126,7 @@
<div class="col-lg-6"><small class="text-secondary"><%=l 'The machine will shutdown after these minutes' %></small></div>
</div>
% }
% if ($USER->is_admin){
% if ($USER->can_change_settings){
<div class="row" ng-show="showmachine.is_base">
<div class="col-lg-3 mt-2">
<label class="control-label" for="volatile_clones"><%=l 'Volatile Clones' %></label>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment