mirror of
https://github.com/flarum/core.git
synced 2025-10-09 14:06:26 +02:00
Implement user preferences API
Preferences must be registered (optionally with a callback to transform data, and a default value) on the User model.
This commit is contained in:
@@ -146,6 +146,9 @@ class CoreServiceProvider extends ServiceProvider
|
||||
|
||||
User::setHasher($this->app['hash']);
|
||||
User::setFormatter($this->app['flarum.formatter']);
|
||||
|
||||
User::registerPreference('discloseOnline', 'boolval', true);
|
||||
User::registerPreference('indexProfile', 'boolval', true);
|
||||
}
|
||||
|
||||
public function registerPermissions()
|
||||
|
Reference in New Issue
Block a user