Bug Fix: Job Quick-Logging with Queues
Jobs logged cannot be quick-logged if they are added into a queue. 'Device Held' can only be configured if the authorization is given.
This commit is contained in:
@@ -397,7 +397,11 @@ namespace Disco.Web.Controllers
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Authorization.Has(Claims.Job.Actions.Close) && m.QuickLog.HasValue && m.QuickLog.Value && m.QuickLogTaskTimeMinutes.HasValue && m.QuickLogTaskTimeMinutes.Value > 0)
|
||||
if (Authorization.Has(Claims.Job.Actions.Close)
|
||||
&& m.QuickLog.HasValue && m.QuickLog.Value
|
||||
&& m.QuickLogTaskTimeMinutes.HasValue && m.QuickLogTaskTimeMinutes.Value > 0
|
||||
&& (j.JobQueues == null || j.JobQueues.All(jqj => jqj.RemovedDate.HasValue))
|
||||
)
|
||||
{
|
||||
// Quick Log
|
||||
// Set Opened Date in the past
|
||||
|
||||
Reference in New Issue
Block a user