upgrades: fix Danbooru.config.user_upgrades_enabled? setting
* Fix it so that if upgrades are disabled, only the payment button is disabled instead of the whole page. * Fix it so that disabling upgrades with DANBOORU_USER_UPGRADES_ENABLED="false" works.
This commit is contained in:
@@ -6,7 +6,7 @@ class UserUpgradePolicy < ApplicationPolicy
|
||||
end
|
||||
|
||||
def new?
|
||||
UserUpgrade.enabled?
|
||||
true
|
||||
end
|
||||
|
||||
def show?
|
||||
|
||||
Reference in New Issue
Block a user