Commit 5efa3f87 authored by Imre Farkas's avatar Imre Farkas

Simplify enabling fork_project in ProjectPolicy

parent a947b2ae
......@@ -241,7 +241,7 @@ class ProjectPolicy < BasePolicy
enable :request_access
end
rule { (can?(:public_user_access) | can?(:reporter_access)) & forking_allowed }.policy do
rule { can?(:download_code) & forking_allowed }.policy do
enable :fork_project
end
......
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