• Nick Thomas's avatar
    Enforce the fork_project permission in Projects::CreateService · 3ed80a01
    Nick Thomas authored
    Projects::ForkService delegates to this service almost entirely, but needed
    one small change so it would propagate create errors correctly.
    
    CreateService#execute needs significant refactoring; it is now right at the
    complexity limit set by Rubocop. I avoided doing so in this commit to keep the
    diff as small as possible.
    
    Several tests depend on the insecure behaviour of ForkService, so fi them up at
    the same time.
    3ed80a01
users_controller_spec.rb 3.48 KB