mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 08:19:07 +00:00
Change register condition
This commit is contained in:
parent
d96b888cc6
commit
01f88c43dc
@ -15,7 +15,7 @@ import { history, store } from './createStore';
|
||||
import { translationMessages, languages } from './i18n';
|
||||
import './public-path';
|
||||
|
||||
const isPluginAllowedToRegister = (plugin) => plugin.id === 'users-permissions' || plugin.id === 'email' || auth.getToken();
|
||||
const isPluginAllowedToRegister = (plugin) => plugin.id === 'users-permissions' || plugin.id === 'email' || auth.getToken() !== null;
|
||||
/**
|
||||
* Register a plugin
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user