Skip to content

authz: fix broken `ReposIDsWithOldestPerms` when repo is hard-deleted

Administrator requested to merge jc/fix-ReposIDsWithOldestPerms into master

Created by: unknwon

Instead of checking if repository is not in the list of soft-deleted, we now check the repository is not deleted.

This prevents scheduler trying to sync permissions for hard-deleted repositories. Such scenario is not usual (DB is manually modified) but noticed this is causing problems on my dev instance.

Fixes #11769

Merge request reports

Loading