diff --git a/app/models/ability.rb b/app/models/ability.rb index 09a9ca41d..85eebe6be 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -171,8 +171,6 @@ class Ability cannot(:cancel, MassBuild) {|mass_build| mass_build.stop_build} - cannot(:regenerate_metadata, Repository) {|repository| !repository.platform.main?} - if @user.system? can :key_pair, Repository else diff --git a/lib/abf_worker/build_lists_publish_task_manager.rb b/lib/abf_worker/build_lists_publish_task_manager.rb index 88130d823..789d5791c 100644 --- a/lib/abf_worker/build_lists_publish_task_manager.rb +++ b/lib/abf_worker/build_lists_publish_task_manager.rb @@ -3,6 +3,7 @@ module AbfWorker class BuildListsPublishTaskManager REDIS_MAIN_KEY = 'abf-worker::build-lists-publish-task-manager::' + # LOCKED_REP_AND_PLATFORMS: ['save_to_repository_id-build_for_platform_id', ...] %w(RESIGN_REPOSITORIES PROJECTS_FOR_CLEANUP LOCKED_PROJECTS_FOR_CLEANUP