Commit caf805f7 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

Merge branch 'develop' of github.com:UPC/ravada into develop

parents 337e7e2b 42b648a2
......@@ -4128,7 +4128,7 @@ sub is_volatile($self, $value=undef) {
if ($self->is_known) {
$is_volatile = $self->_data('is_volatile', $value);
} elsif ($self->domain) {
$is_volatile = $self->is_persistent();
$is_volatile = ! $self->is_persistent();
}
$self->{_is_volatile} = $is_volatile;
return $is_volatile;
......
<div class="card">
<div class="card-body">
<form method="post">
<form method="post" action="/admin/user/<%= $user->id %>.html">
% my $checked = '';
% $checked = 'checked' if $user->is_admin;
<input type="checkbox" name="is_admin" value="1" <%= $checked %>>
......
<div class="card">
<div class="card-body">
<form method="post">
<form method="post" action="/admin/user/<%= $user->id %>.html">
% for my $perm ($_user->list_all_permissions) {
% my $can_do = $user->can_do($perm->{name});
% my $checked = $can_do ? 'checked' : '';
......
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