Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
85bd253be9ef
Commit
85bd253b
authored
Apr 09, 2014
by
Steffen Knoth
Browse files
fix for project creation: group projects don't count towards user's project limit
parent
b97094c78d21
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/project.rb
View file @
85bd253b
...
...
@@ -239,7 +239,7 @@
end
def
check_limit
unless
creator
.
can_create_project?
unless
creator
.
can_create_project?
or
namespace
.
kind
==
'group'
errors
[
:limit_reached
]
<<
(
"Your project limit is
#{
creator
.
projects_limit
}
projects! Please contact your administrator to increase it"
)
end
rescue
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment