Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
shells
manager2-api
Commits
ec416966
Commit
ec416966
authored
Dec 24, 2019
by
Cool Fire
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Quota is always known if it is set
parent
a4819fa2
Pipeline
#1959
passed with stage
in 2 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
helpers/limits.rb
helpers/limits.rb
+1
-1
No files found.
helpers/limits.rb
View file @
ec416966
...
...
@@ -7,7 +7,7 @@ class Manager2Api < Sinatra::Base
# Disk quotas
def
limit_disk_get
(
username
)
data
=
git_get
return
'No disk quota set
, default is 5000 MB
'
unless
data
[
username
][
'properties'
].
key?
'quota'
return
'No disk quota set'
unless
data
[
username
][
'properties'
].
key?
'quota'
data
[
username
][
'properties'
][
'quota'
]
end
...
...
Write
Preview
Markdown
is supported
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