Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 17:30:29 +01:00
Add email_level as updatable user field
Dieser Commit ist enthalten in:
Ursprung
e0a2525cb0
Commit
7841ee8101
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
|
@ -46,7 +46,8 @@ const userProperties = [
|
||||||
'location',
|
'location',
|
||||||
'website',
|
'website',
|
||||||
'bio_raw',
|
'bio_raw',
|
||||||
'trust_level'
|
'trust_level',
|
||||||
|
'email_level'
|
||||||
];
|
];
|
||||||
|
|
||||||
const notificationLevels = [
|
const notificationLevels = [
|
||||||
|
|
|
@ -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
|
||||||
|
|
Laden …
In neuem Issue referenzieren