mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-23 09:40:39 +00:00
Disable account registering from disabled email provider
This commit is contained in:
@@ -20,7 +20,7 @@ class GetWidgetsValuesController extends Controller
|
||||
)->format();
|
||||
|
||||
return [
|
||||
'license' => get_setting('license'),
|
||||
'license' => get_settings('license'),
|
||||
'app_version' => config('vuefilemanager.version'),
|
||||
'total_users' => User::count(),
|
||||
'total_used_space' => $storage_usage,
|
||||
|
||||
@@ -13,7 +13,7 @@ class DisabledMimetypes implements Rule
|
||||
*/
|
||||
public function passes($attribute, $value): bool
|
||||
{
|
||||
$mimetype_blacklist = explode(',', get_setting('mimetypes_blacklist'));
|
||||
$mimetype_blacklist = explode(',', get_settings('mimetypes_blacklist'));
|
||||
$file_mimetype = explode('/', $value->getMimeType());
|
||||
|
||||
return ! array_intersect($file_mimetype, $mimetype_blacklist);
|
||||
|
||||
Reference in New Issue
Block a user