Commit 6669316c authored by Kamil Trzciński's avatar Kamil Trzciński

Disable Feature Flags and Packages if repository is disabled

parent 7524c068
......@@ -132,11 +132,11 @@ module EE
rule { deploy_board_disabled & ~is_development }.prevent :read_deploy_board
rule { packages_disabled }.policy do
rule { packages_disabled | repository_disabled }.policy do
prevent(*create_read_update_admin_destroy(:package))
end
rule { feature_flags_disabled }.policy do
rule { feature_flags_disabled | repository_disabled }.policy do
prevent(*create_read_update_admin_destroy(:feature_flag))
end
......
---
title: Disable Feature Flags and Packages if repository is disabled
merge_request:
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment