File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ const getUsers = () => {
46
46
// Check if the user is still using previous schema type
47
47
if ( Array . isArray ( auth ) ) {
48
48
printWarning ( ) ; // Print warning message
49
- return auth ; // Let the user proceed anyway, will remove in V 1.7.0
49
+ return [ ] ; // Support for old data structure now removed
50
50
}
51
51
// Otherwise, return the users array, if available
52
52
return auth . users || [ ] ;
@@ -95,12 +95,7 @@ export const isAuthEnabled = () => {
95
95
/* Returns true if guest access is enabled */
96
96
export const isGuestAccessEnabled = ( ) => {
97
97
const appConfig = getAppConfig ( ) ;
98
- if ( appConfig . enableGuestAccess ) {
99
- // User is still using the old auth method
100
- printWarning ( ) ;
101
- return true ;
102
- }
103
- if ( appConfig . auth && ! Array . isArray ( appConfig . auth ) ) {
98
+ if ( appConfig . auth && typeof appConfig . auth === 'object' ) {
104
99
return appConfig . auth . enableGuestAccess || false ;
105
100
}
106
101
return false ;
You can’t perform that action at this time.
0 commit comments