0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 18:50:27 +01:00

Add email_level as updatable user field

Dieser Commit ist enthalten in:
Angus McLeod 2020-07-02 09:59:14 +10:00
Ursprung e0a2525cb0
Commit 7841ee8101
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -46,7 +46,8 @@ const userProperties = [
'location', 'location',
'website', 'website',
'bio_raw', 'bio_raw',
'trust_level' 'trust_level',
'email_level'
]; ];
const notificationLevels = [ const notificationLevels = [

Datei anzeigen

@ -1,7 +1,7 @@
class CustomWizard::Mapper class CustomWizard::Mapper
attr_accessor :inputs, :data, :user attr_accessor :inputs, :data, :user
USER_FIELDS = ['name', 'username', 'email', 'date_of_birth', 'title', 'locale', 'trust_level'] USER_FIELDS = ['name', 'username', 'email', 'date_of_birth', 'title', 'locale', 'trust_level', 'email_level']
PROFILE_FIELDS = ['location', 'website', 'bio_raw'] PROFILE_FIELDS = ['location', 'website', 'bio_raw']
def self.user_fields def self.user_fields