about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-01-10 23:04:14 -0600
committermultiple creatures <dev@multiple-creature.party>2020-01-10 23:04:14 -0600
commit0f1532aee098049b17ad6b7ecb1d083c856f1d64 (patch)
tree75629111cd2530dc2cfa66ea2c474e9ed14d1581 /app/models
parentce72d574879b95bd3da5959062d04037945f292f (diff)
add option for changing the monsterfork api exposure level, defaulting to `full` - if this gives your app indigestion change it to back to `basic` in preferences
Diffstat (limited to 'app/models')
-rw-r--r--app/models/user.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index b519e9b15..c7b002024 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -46,6 +46,7 @@
 #  media_only                :boolean          default(FALSE), not null
 #  filter_undescribed        :boolean          default(FALSE), not null
 #  filters_enabled           :boolean          default(FALSE), not null
+#  monsterfork_api           :integer          default("full"), not null
 #
 
 class User < ApplicationRecord
@@ -81,6 +82,8 @@ class User < ApplicationRecord
   include PamAuthenticable
   include LdapAuthenticable
 
+  enum monsterfork_api: [:vanilla, :basic, :full]
+
   belongs_to :account, inverse_of: :user
   belongs_to :invite, counter_cache: :uses, optional: true
   belongs_to :created_by_application, class_name: 'Doorkeeper::Application', optional: true