Skip to content

Commit b928d5c

Browse files
committed
commit
1 parent d630952 commit b928d5c

18 files changed

+17
-485
lines changed

app/site/crud/Admin/Blocks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Blocks extends AdminRestPage
2828
*/
2929
public static function isEnabled() : bool
3030
{
31-
return \App\App::getInstance()->getEnv('CRUD');
31+
return boolval(\App\App::getInstance()->getEnv('CRUD'));
3232
}
3333

3434
/**

app/site/crud/Admin/Configs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Configs extends AdminRestPage
2828
*/
2929
public static function isEnabled() : bool
3030
{
31-
return \App\App::getInstance()->getEnv('CRUD');
31+
return boolval(\App\App::getInstance()->getEnv('CRUD'));
3232
}
3333

3434
/**

app/site/crud/Admin/Events.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Events extends AdminRestPage
2828
*/
2929
public static function isEnabled() : bool
3030
{
31-
return \App\App::getInstance()->getEnv('CRUD');
31+
return boolval(\App\App::getInstance()->getEnv('CRUD'));
3232
}
3333

3434
/**

app/site/crud/Admin/Languages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Languages extends AdminRestPage
2828
*/
2929
public static function isEnabled() : bool
3030
{
31-
return \App\App::getInstance()->getEnv('CRUD');
31+
return boolval(\App\App::getInstance()->getEnv('CRUD'));
3232
}
3333

3434
/**

app/site/crud/Admin/Links.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Links extends AdminRestPage
2828
*/
2929
public static function isEnabled() : bool
3030
{
31-
return \App\App::getInstance()->getEnv('CRUD');
31+
return boolval(\App\App::getInstance()->getEnv('CRUD'));
3232
}
3333

3434
/**

app/site/crud/Admin/Media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Media extends AdminRestPage
2828
*/
2929
public static function isEnabled() : bool
3030
{
31-
return \App\App::getInstance()->getEnv('CRUD');
31+
return boolval(\App\App::getInstance()->getEnv('CRUD'));
3232
}
3333

3434
/**

app/site/crud/Admin/MediaRewrites.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class MediaRewrites extends AdminRestPage
2828
*/
2929
public static function isEnabled() : bool
3030
{
31-
return \App\App::getInstance()->getEnv('CRUD');
31+
return boolval(\App\App::getInstance()->getEnv('CRUD'));
3232
}
3333

3434
/**

app/site/crud/Admin/News.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class News extends AdminRestPage
2828
*/
2929
public static function isEnabled() : bool
3030
{
31-
return \App\App::getInstance()->getEnv('CRUD');
31+
return boolval(\App\App::getInstance()->getEnv('CRUD'));
3232
}
3333

3434
/**

app/site/crud/Admin/Pages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Pages extends AdminRestPage
2828
*/
2929
public static function isEnabled() : bool
3030
{
31-
return \App\App::getInstance()->getEnv('CRUD');
31+
return boolval(\App\App::getInstance()->getEnv('CRUD'));
3232
}
3333

3434
/**

app/site/crud/Admin/Permissions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Permissions extends AdminRestPage
2828
*/
2929
public static function isEnabled() : bool
3030
{
31-
return \App\App::getInstance()->getEnv('CRUD');
31+
return boolval(\App\App::getInstance()->getEnv('CRUD'));
3232
}
3333

3434
/**

0 commit comments

Comments
 (0)