Skip to content
  • Georges Racinet's avatar
    Projects: moved personal namespace limit to model · 21b6da130e4d
    Georges Racinet authored
    Heptapod has specific logic so that it is more obvious to
    users that can't create projects in their personal namespace
    that they may still do it in a Group.
    
    But at least in current GitLab, such checks are done at lower
    level than the service, namely in the model. So we need to
    use our specific check (calling specific method) there.
    
    This was spotted by the test in `spec/requests/api/projects.rb`
    because our `deny_namespace!` ended up in the API in a 400 error
    (message: "invalid namespace") instead of the expeted 403 with
    explicit message about the limit
    21b6da130e4d