Commit 50d05288 authored by Francesc Guasch's avatar Francesc Guasch Committed by Francesc Guasch
Browse files

[#231] can admin if is operator

parent 89edb417
......@@ -200,6 +200,9 @@ any '/admin' => sub {
any '/admin/(#type)' => sub {
my $c = shift;
return admin($c) if $c->stash('type') eq 'machines'
&& $USER->is_operator;
return access_denied($c) if !$USER->is_admin;
return admin($c);
};
......
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