Skip to content

Commit

Permalink
afwatch: only admin can change job branch
Browse files Browse the repository at this point in the history
References #445.
  • Loading branch information
timurhai committed Mar 11, 2019
1 parent e8c09b9 commit e77ad43
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions afanasy/src/watch/listjobs.cpp
Expand Up @@ -304,9 +304,12 @@ void ListJobs::contextMenuEvent( QContextMenuEvent *event)

submenu = new QMenu( "Set Parameter", this);

action = new QAction( "Change Branch", this);
connect( action, SIGNAL( triggered() ), this, SLOT( actChangeBranch() ));
submenu->addAction( action);
if (af::Environment::VISOR())
{
action = new QAction("Change Branch", this);
connect(action, SIGNAL(triggered()), this, SLOT(actChangeBranch()));
submenu->addAction(action);
}
action = new QAction( "Max Running Tasks", this);
connect( action, SIGNAL( triggered() ), this, SLOT( actMaxRunningTasks() ));
submenu->addAction( action);
Expand Down

0 comments on commit e77ad43

Please sign in to comment.