Skip to content

Commit

Permalink
bcommand: Fix status scheduler
Browse files Browse the repository at this point in the history
This prevents displaying disabled schedules in the preview of
the status scheduler command.
  • Loading branch information
fbergkemper authored and Marco van Wieringen committed Aug 29, 2016
1 parent 618f3c2 commit 6aae37e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dird/ua_status.c
Expand Up @@ -765,6 +765,10 @@ static void do_scheduler_status(UAContext *ua)
*/
LockRes();
foreach_res(sched, R_SCHEDULE) {
if (!schedulegiven && !sched->enabled) {
continue;
}

if (!acl_access_ok(ua, Schedule_ACL, sched->hdr.name)) {
continue;
}
Expand Down

0 comments on commit 6aae37e

Please sign in to comment.