mirror of
https://github.com/neocities/neocities.git
synced 2025-08-02 15:51:55 +02:00
ability to set custom maximum space
This commit is contained in:
parent
0c8bba8114
commit
3035175c4f
3 changed files with 24 additions and 1 deletions
|
@ -960,7 +960,11 @@ class Site < Sequel::Model
|
|||
end
|
||||
|
||||
def maximum_space
|
||||
PLAN_FEATURES[(parent? ? self : parent).plan_type.to_sym][:space]
|
||||
plan_space = PLAN_FEATURES[(parent? ? self : parent).plan_type.to_sym][:space]
|
||||
|
||||
return custom_max_space if custom_max_space > plan_space
|
||||
|
||||
plan_space
|
||||
end
|
||||
|
||||
def space_percentage_used
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue