Skip to content

"No Backup schedule present" warning shown when users do not have scheduling permission #1411

@The1CABAL

Description

@The1CABAL

Operating System

Debian 12

AMP Version and Build Date

2.7 - 20260308.1

AMP Release Stream

Mainline

I confirm that

  • I have searched for an existing bug report for this issue.
  • I am using the latest available version of AMP.
  • my operating system is up-to-date.

Intended Action

I am attempting to setup a user who will have basic management abilities without really changing the behavior of the server. This is a minor issue in permissions interactions I found when a user has permission to view backups but not schedules.

Expected Behaviour

There are two different behaviors I would expect which are not taking place:

  1. When there is an existing backup schedule, the "No Backup Schedule Present" warning is always suppressed.
  2. Even if there is no backup schedule, a user without permission to add a schedule should receive the "No Backup Schedule Present" warning

Actual Behaviour

A user without permission to view the scheduler is getting a "no backup scheduler present" warning

Image

Reproduction

  1. Create a game instance (Observed specifically in Project Zomboid)
  2. Create a backup schedule as AMP admin to ensure the warning is suppressed
  3. Create a role with at minimum LocalFileBackup.Backup.ViewBackupsList enabled but not anything under Core.Scheduler.*
  4. Create a second user and assign the role created in step 3.
  5. Sign in as the second user and navigate to the Backups list. Observe warning message
  6. As AMP admin, assign the Core.Scheduler.ViewSchedule permission
  7. As the second user, refresh and observe the warning message go away

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions